diff options
author | yui-knk <spiketeika@gmail.com> | 2015-08-30 19:26:39 +0900 |
---|---|---|
committer | yui-knk <spiketeika@gmail.com> | 2015-08-30 19:26:39 +0900 |
commit | 68eb6ca63119c35a6b42c7a90ca3557517b1bcda (patch) | |
tree | 732d80df04f1169102db2e046afffbc8c7f32821 /activerecord/lib | |
parent | 49ba2710e9fa01c2bedaf306552fae6f3301a119 (diff) | |
download | rails-68eb6ca63119c35a6b42c7a90ca3557517b1bcda.tar.gz rails-68eb6ca63119c35a6b42c7a90ca3557517b1bcda.tar.bz2 rails-68eb6ca63119c35a6b42c7a90ca3557517b1bcda.zip |
Make revert of `disable_extension` to work
This is fix of #11826 which miss to add `disable_extension` to
`ReversibleAndIrreversibleMethods`. So `CommandRecorder#method_missing`
catches `change_column_default` and @delegate's method is called.
Diffstat (limited to 'activerecord/lib')
-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 b52e89d792..05420cfed1 100644 --- a/activerecord/lib/active_record/migration/command_recorder.rb +++ b/activerecord/lib/active_record/migration/command_recorder.rb @@ -17,7 +17,7 @@ module ActiveRecord ReversibleAndIrreversibleMethods = [:create_table, :create_join_table, :rename_table, :add_column, :remove_column, :rename_index, :rename_column, :add_index, :remove_index, :add_timestamps, :remove_timestamps, :change_column_default, :add_reference, :remove_reference, :transaction, - :drop_join_table, :drop_table, :execute_block, :enable_extension, + :drop_join_table, :drop_table, :execute_block, :enable_extension, :disable_extension, :change_column, :execute, :remove_columns, :change_column_null, :add_foreign_key, :remove_foreign_key ] |