Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Revert "Merge pull request #8930 from cordawyn/ordered_railties"

This reverts commit 8348f9e, reversing
changes made to 9dfe2d6.

Reason: this broke railties tests as explained in the issue, and the
author is going to review and report back.

#8930 (comment)
  • Loading branch information...
commit c372eec97c53cd3af55443201b74bfe80747d313 1 parent 8348f9e
@carlosantoniodasilva carlosantoniodasilva authored
View
4 activerecord/CHANGELOG.md
@@ -1,9 +1,5 @@
## 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.ordered_railties.each do |railtie|
+ Rails.application.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)
Please sign in to comment.
Something went wrong with that request. Please try again.