Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Merge pull request #8930 from cordawyn/ordered_railties

rake railties:install:migrations respects the order of railties
  • Loading branch information...
commit 8348f9ea72c9b50fc4d4462fd9ebe3bba932c783 2 parents 9dfe2d6 + 9dcd2a8
@carlosantoniodasilva carlosantoniodasilva authored
View
4 activerecord/CHANGELOG.md
@@ -1,5 +1,9 @@
## Rails 4.0.0 (unreleased) ##
+* Rake task `railties:install:migrations` respects the order of railties.
+
+ *Slava Kravchenko*
+
* Remove support for parsing YAML parameters from request.
*Aaron Patterson*
View
2  activerecord/lib/active_record/railties/databases.rake
@@ -420,7 +420,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.ordered_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)

1 comment on commit 8348f9e

@carlosantoniodasilva

This has failed railties tests and I already asked the author to check.

Please sign in to comment.
Something went wrong with that request. Please try again.