diff options
author | Arun Agrawal <arunagw@gmail.com> | 2014-05-23 14:34:05 +0200 |
---|---|---|
committer | Arun Agrawal <arunagw@gmail.com> | 2014-05-27 16:12:36 +0200 |
commit | 50de394cc863acac9400e955cb93ed81b45e9eac (patch) | |
tree | c71c24462442de63e3f1427c68c2a4a2845cb62f /activerecord/lib | |
parent | 0cc7f02b890d33a4e3d2a7e09f66781745e33820 (diff) | |
download | rails-50de394cc863acac9400e955cb93ed81b45e9eac.tar.gz rails-50de394cc863acac9400e955cb93ed81b45e9eac.tar.bz2 rails-50de394cc863acac9400e955cb93ed81b45e9eac.zip |
rake railties:install:migrations respects the order of railties
This PR fixes #8930 and some stuff from #8985
Diffstat (limited to 'activerecord/lib')
-rw-r--r-- | activerecord/lib/active_record/railties/databases.rake | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/activerecord/lib/active_record/railties/databases.rake b/activerecord/lib/active_record/railties/databases.rake index 9e8e5fe94b..fa25ceaefa 100644 --- a/activerecord/lib/active_record/railties/databases.rake +++ b/activerecord/lib/active_record/railties/databases.rake @@ -366,7 +366,7 @@ namespace :railties do task :migrations => :'db:load_config' do to_load = ENV['FROM'].blank? ? :all : ENV['FROM'].split(",").map {|n| n.strip } railties = {} - Rails.application.railties.each do |railtie| + Rails.application.migration_railties.each do |railtie| next unless to_load == :all || to_load.include?(railtie.railtie_name) if railtie.respond_to?(:paths) && (path = railtie.paths['db/migrate'].first) |