Permalink
Browse files

rake railties:install:migrations respects the order of railties

  • Loading branch information...
1 parent 0246712 commit 9dcd2a8bc40f1335bc0fb97e6c1d801a7bccaf86 @cordawyn cordawyn committed Jan 14, 2013
Showing with 5 additions and 1 deletion.
  1. +4 −0 activerecord/CHANGELOG.md
  2. +1 −1 activerecord/lib/active_record/railties/databases.rake
@@ -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*
@@ -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)

0 comments on commit 9dcd2a8

Please sign in to comment.