aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord
diff options
context:
space:
mode:
authoroz <oz@utilum.com>2018-01-18 17:16:15 +0100
committereileencodes <eileencodes@gmail.com>2018-01-18 13:04:57 -0500
commit4d4db4c86163c9b3fd242db543007bc3adf2d115 (patch)
tree21b050a1cc9af82dc420553ad9e842582bddf894 /activerecord
parent93d7b07549f446d6ed8449608142bbe5ff69be84 (diff)
downloadrails-4d4db4c86163c9b3fd242db543007bc3adf2d115.tar.gz
rails-4d4db4c86163c9b3fd242db543007bc3adf2d115.tar.bz2
rails-4d4db4c86163c9b3fd242db543007bc3adf2d115.zip
Use selected_migrations if block_given?
This slipped in as part of a2827ec9811b5012e8e366011fd44c8eb53fc714.
Diffstat (limited to 'activerecord')
-rw-r--r--activerecord/lib/active_record/migration.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/activerecord/lib/active_record/migration.rb b/activerecord/lib/active_record/migration.rb
index 4e36e49905..dab70b835a 100644
--- a/activerecord/lib/active_record/migration.rb
+++ b/activerecord/lib/active_record/migration.rb
@@ -1043,7 +1043,7 @@ module ActiveRecord
migrations
end
- Migrator.new(:down, migrations, target_version).migrate
+ Migrator.new(:down, selected_migrations, target_version).migrate
end
def run(direction, target_version)