Browse files

Ensure engine migrations are copied in the same sequence that they ar…

…e required.
  • Loading branch information...
1 parent 21a8dc7 commit 2d4d7ccf3355a194365dfe8c6f1de6ba6601ac41 @BDQ BDQ committed Jun 8, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 activerecord/lib/active_record/railties/databases.rake
View
2 activerecord/lib/active_record/railties/databases.rake
@@ -499,7 +499,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)

0 comments on commit 2d4d7cc

Please sign in to comment.