diff options
author | Aaron Patterson <aaron.patterson@gmail.com> | 2011-09-05 14:17:55 -0700 |
---|---|---|
committer | Aaron Patterson <aaron.patterson@gmail.com> | 2011-09-05 14:17:55 -0700 |
commit | 6d93f70c58ca1a1ee3d561421c1d2c12b4cb1cea (patch) | |
tree | 3d40eb5b2c475e990a88dd99bf967530ec2367ab /activerecord/lib/active_record | |
parent | 21750122308a38cd2eaf9b46aa1789966eb8abd9 (diff) | |
parent | 24674b344864298135f4f1cecca1214c6b9ddf42 (diff) | |
download | rails-6d93f70c58ca1a1ee3d561421c1d2c12b4cb1cea.tar.gz rails-6d93f70c58ca1a1ee3d561421c1d2c12b4cb1cea.tar.bz2 rails-6d93f70c58ca1a1ee3d561421c1d2c12b4cb1cea.zip |
Merge pull request #2716 from jbbarth/fix_invert_rename_index
Fix bad options order in AR::Migration::CommandRecorder#invert_rename_index
Diffstat (limited to 'activerecord/lib/active_record')
-rw-r--r-- | activerecord/lib/active_record/migration/command_recorder.rb | 2 |
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) |