diff options
author | Piotr Sarnacki <drogus@gmail.com> | 2010-09-06 14:09:09 +0200 |
---|---|---|
committer | José Valim <jose.valim@gmail.com> | 2010-09-06 14:38:45 +0200 |
commit | 7c78cc3ccac06f955f6c455971762685f95590b7 (patch) | |
tree | bbdbe7c9c64d50c3fd49fd58807729bb6f89daf2 /activerecord | |
parent | ec6fa6d3efd498960fcadfbe8a0545feea7c44bd (diff) | |
download | rails-7c78cc3ccac06f955f6c455971762685f95590b7.tar.gz rails-7c78cc3ccac06f955f6c455971762685f95590b7.tar.bz2 rails-7c78cc3ccac06f955f6c455971762685f95590b7.zip |
Use railties:copy_migrations instead of db:copy_migrations
Signed-off-by: José Valim <jose.valim@gmail.com>
Diffstat (limited to 'activerecord')
-rw-r--r-- | activerecord/lib/active_record/railties/databases.rake | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/activerecord/lib/active_record/railties/databases.rake b/activerecord/lib/active_record/railties/databases.rake index aedda26ba5..8e5332214c 100644 --- a/activerecord/lib/active_record/railties/databases.rake +++ b/activerecord/lib/active_record/railties/databases.rake @@ -5,7 +5,6 @@ namespace :db do ActiveRecord::Migrator.migrations_path = Rails.application.config.paths.db.migrate.to_a.first end - desc "Copies missing migrations from Railties (e.g. plugins, engines). You can specify Railties to use with FROM=railtie1,railtie2" task :copy_migrations => :load_config do to_load = ENV["FROM"].blank? ? :all : ENV["FROM"].split(",").map {|n| n.strip } railties = {} @@ -502,6 +501,11 @@ namespace :db do end end +namespace :railties do + desc "Copies missing migrations from Railties (e.g. plugins, engines). You can specify Railties to use with FROM=railtie1,railtie2" + task :copy_migrations => 'db:copy_migrations' +end + task 'test:prepare' => 'db:test:prepare' def drop_database(config) |