aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/Rakefile
diff options
context:
space:
mode:
authorXavier Noria <fxn@hashref.com>2016-08-06 19:37:57 +0200
committerXavier Noria <fxn@hashref.com>2016-08-06 19:37:57 +0200
commitd22e522179c1c90e658c3ed0e9b972ec62306209 (patch)
tree3ccbdff567b79a128ad61adcbb4f2950ca9b696e /activerecord/Rakefile
parentfa911a74e15ef34bb435812f7d9cf7324253476f (diff)
downloadrails-d22e522179c1c90e658c3ed0e9b972ec62306209.tar.gz
rails-d22e522179c1c90e658c3ed0e9b972ec62306209.tar.bz2
rails-d22e522179c1c90e658c3ed0e9b972ec62306209.zip
modernizes hash syntax in activerecord
Diffstat (limited to 'activerecord/Rakefile')
-rw-r--r--activerecord/Rakefile26
1 files changed, 13 insertions, 13 deletions
diff --git a/activerecord/Rakefile b/activerecord/Rakefile
index 5bf1c843af..543ab2eaba 100644
--- a/activerecord/Rakefile
+++ b/activerecord/Rakefile
@@ -18,7 +18,7 @@ def run_without_aborting(*tasks)
end
desc "Run mysql2, sqlite, and postgresql tests by default"
-task :default => :test
+task default: :test
task :package
@@ -41,8 +41,8 @@ end
desc "Build MySQL and PostgreSQL test databases"
namespace :db do
- task :create => ["db:mysql:build", "db:postgresql:build"]
- task :drop => ["db:mysql:drop", "db:postgresql:drop"]
+ task create: ["db:mysql:build", "db:postgresql:build"]
+ task drop: ["db:mysql:drop", "db:postgresql:drop"]
end
%w( mysql2 postgresql sqlite3 sqlite3_mem db2 oracle jdbcmysql jdbcpostgresql jdbcsqlite3 jdbcderby jdbch2 jdbchsqldb ).each do |adapter|
@@ -73,8 +73,8 @@ end
end
namespace adapter do
- task :test => "test_#{adapter}"
- task :isolated_test => "isolated_test_#{adapter}"
+ task test: "test_#{adapter}"
+ task isolated_test: "isolated_test_#{adapter}"
# Set the connection environment for the adapter
task(:env) { ENV["ARCONN"] = adapter }
@@ -102,7 +102,7 @@ namespace :db do
end
desc "Rebuild the MySQL test databases"
- task :rebuild => [:drop, :build]
+ task rebuild: [:drop, :build]
end
namespace :postgresql do
@@ -126,17 +126,17 @@ namespace :db do
end
desc "Rebuild the PostgreSQL test databases"
- task :rebuild => [:drop, :build]
+ task rebuild: [:drop, :build]
end
end
-task :build_mysql_databases => "db:mysql:build"
-task :drop_mysql_databases => "db:mysql:drop"
-task :rebuild_mysql_databases => "db:mysql:rebuild"
+task build_mysql_databases: "db:mysql:build"
+task drop_mysql_databases: "db:mysql:drop"
+task rebuild_mysql_databases: "db:mysql:rebuild"
-task :build_postgresql_databases => "db:postgresql:build"
-task :drop_postgresql_databases => "db:postgresql:drop"
-task :rebuild_postgresql_databases => "db:postgresql:rebuild"
+task build_postgresql_databases: "db:postgresql:build"
+task drop_postgresql_databases: "db:postgresql:drop"
+task rebuild_postgresql_databases: "db:postgresql:rebuild"
task :lines do
load File.expand_path("..", File.dirname(__FILE__)) + "/tools/line_statistics"