diff options
author | José Valim <jose.valim@gmail.com> | 2011-06-10 04:43:43 -0700 |
---|---|---|
committer | José Valim <jose.valim@gmail.com> | 2011-06-10 04:43:43 -0700 |
commit | 78acd17f3124a22485aa1bdcc64d7d1e6e69cb2d (patch) | |
tree | e482cdcc4571033adcf73285dcf997c0fcdf135b /activerecord | |
parent | 0bcbcdfdad1e082ba7740a5d60c61eb3349b670a (diff) | |
parent | 25ad43015c3fc7694a4e6869e1d457b96160da28 (diff) | |
download | rails-78acd17f3124a22485aa1bdcc64d7d1e6e69cb2d.tar.gz rails-78acd17f3124a22485aa1bdcc64d7d1e6e69cb2d.tar.bz2 rails-78acd17f3124a22485aa1bdcc64d7d1e6e69cb2d.zip |
Merge pull request #1567 from BDQ/engine_migrations
Ensure engine migrations are copied in correct sequence
Diffstat (limited to 'activerecord')
-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 6f8f84d50b..6ef24a4eaf 100644 --- a/activerecord/lib/active_record/railties/databases.rake +++ b/activerecord/lib/active_record/railties/databases.rake @@ -498,7 +498,7 @@ namespace :railties do # desc "Copies missing migrations from Railties (e.g. plugins, engines). You can specify Railties to use with FROM=railtie1,railtie2" task :migrations => :'db:load_config' do to_load = ENV['FROM'].blank? ? :all : ENV['FROM'].split(",").map {|n| n.strip } - railties = {} + railties = ActiveSupport::OrderedHash.new Rails.application.railties.all do |railtie| next unless to_load == :all || to_load.include?(railtie.railtie_name) |