diff options
author | Sean Griffin <sean@seantheprogrammer.com> | 2015-08-30 19:20:22 -0600 |
---|---|---|
committer | Sean Griffin <sean@seantheprogrammer.com> | 2015-08-30 19:20:22 -0600 |
commit | 13c690345152b8ec33919a69d6a290eed571a378 (patch) | |
tree | 336229811e3a654029341811df40c7e913622a59 /activerecord | |
parent | 1a432cd8aa805ea62c9e56afb8c6665b135196b0 (diff) | |
parent | df9cfc055a0c0888ee1c2a8b5d8ffd208a1aa33a (diff) | |
download | rails-13c690345152b8ec33919a69d6a290eed571a378.tar.gz rails-13c690345152b8ec33919a69d6a290eed571a378.tar.bz2 rails-13c690345152b8ec33919a69d6a290eed571a378.zip |
Merge pull request #21432 from yui-knk/fix/what_change_method_can_reverse
[ci skip] Update what methods `Migration#change` can reverse
Diffstat (limited to 'activerecord')
-rw-r--r-- | activerecord/lib/active_record/migration/command_recorder.rb | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/activerecord/lib/active_record/migration/command_recorder.rb b/activerecord/lib/active_record/migration/command_recorder.rb index db7f3f63f6..3ab0f28c9b 100644 --- a/activerecord/lib/active_record/migration/command_recorder.rb +++ b/activerecord/lib/active_record/migration/command_recorder.rb @@ -5,10 +5,22 @@ module ActiveRecord # knows how to invert the following commands: # # * add_column + # * add_foreign_key # * add_index + # * add_reference # * add_timestamps - # * create_table + # * change_column_default (must supply a :from and :to option) + # * change_column_null # * create_join_table + # * create_table + # * disable_extension + # * drop_join_table + # * drop_table (must supply a block) + # * enable_extension + # * remove_column (must supply a type) + # * remove_foreign_key (must supply a second table) + # * remove_index + # * remove_reference # * remove_timestamps # * rename_column # * rename_index |