aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/lib/active_record/migration/command_recorder.rb
diff options
context:
space:
mode:
authorjbbarth <jeanbaptiste.barth@gmail.com>2011-08-28 06:02:15 +0200
committerjbbarth <jeanbaptiste.barth@gmail.com>2011-08-28 06:02:15 +0200
commit24674b344864298135f4f1cecca1214c6b9ddf42 (patch)
tree90d10a3a963d885694e882e7e8829c5a85fdb034 /activerecord/lib/active_record/migration/command_recorder.rb
parentbb4dedbc2cc7b96b95bf4519f56ed9624949a7ef (diff)
downloadrails-24674b344864298135f4f1cecca1214c6b9ddf42.tar.gz
rails-24674b344864298135f4f1cecca1214c6b9ddf42.tar.bz2
rails-24674b344864298135f4f1cecca1214c6b9ddf42.zip
Fixed bad options order in ActiveRecord::Migration::CommandRecorder#invert_rename_index
Diffstat (limited to 'activerecord/lib/active_record/migration/command_recorder.rb')
-rw-r--r--activerecord/lib/active_record/migration/command_recorder.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/activerecord/lib/active_record/migration/command_recorder.rb b/activerecord/lib/active_record/migration/command_recorder.rb
index 2eeff7e36f..ffee5a081a 100644
--- a/activerecord/lib/active_record/migration/command_recorder.rb
+++ b/activerecord/lib/active_record/migration/command_recorder.rb
@@ -71,7 +71,7 @@ module ActiveRecord
end
def invert_rename_index(args)
- [:rename_index, args.reverse]
+ [:rename_index, [args.first] + args.last(2).reverse]
end
def invert_rename_column(args)