diff options
author | Brian Quinn <briandquinn@gmail.com> | 2011-06-08 16:51:10 +0100 |
---|---|---|
committer | Brian Quinn <briandquinn@gmail.com> | 2011-06-10 12:11:45 +0100 |
commit | 9f2e91414f507a0516fde260996f3980702664c3 (patch) | |
tree | cf16f60fb03de573553ef4c07c8322d87f36d971 /activerecord | |
parent | 0bcbcdfdad1e082ba7740a5d60c61eb3349b670a (diff) | |
download | rails-9f2e91414f507a0516fde260996f3980702664c3.tar.gz rails-9f2e91414f507a0516fde260996f3980702664c3.tar.bz2 rails-9f2e91414f507a0516fde260996f3980702664c3.zip |
Ensure engine migrations are copied in the same sequence that they are required.
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) |