diff options
author | Rafael Mendonça França <rafaelmfranca@gmail.com> | 2014-05-27 19:27:40 -0300 |
---|---|---|
committer | Rafael Mendonça França <rafaelmfranca@gmail.com> | 2014-05-27 19:27:40 -0300 |
commit | be4b3df8bbd6a0ca8401e85103f3b8ffeed8ea70 (patch) | |
tree | 55d382271be6179eb1cec5c46a3c2b2011c20174 /activerecord/lib/active_record/railties/databases.rake | |
parent | d0a99c8b263a5d58203871a12611bb5e969313cd (diff) | |
parent | 50de394cc863acac9400e955cb93ed81b45e9eac (diff) | |
download | rails-be4b3df8bbd6a0ca8401e85103f3b8ffeed8ea70.tar.gz rails-be4b3df8bbd6a0ca8401e85103f3b8ffeed8ea70.tar.bz2 rails-be4b3df8bbd6a0ca8401e85103f3b8ffeed8ea70.zip |
Merge pull request #15269 from arunagw/aa-fixes-8930
rake railties:install:migrations respects the order of railties
Diffstat (limited to 'activerecord/lib/active_record/railties/databases.rake')
-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) |