aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/lib/active_record/migration
diff options
context:
space:
mode:
authorSean Griffin <sean@seantheprogrammer.com>2015-08-30 19:20:22 -0600
committerSean Griffin <sean@seantheprogrammer.com>2015-08-30 19:20:22 -0600
commit13c690345152b8ec33919a69d6a290eed571a378 (patch)
tree336229811e3a654029341811df40c7e913622a59 /activerecord/lib/active_record/migration
parent1a432cd8aa805ea62c9e56afb8c6665b135196b0 (diff)
parentdf9cfc055a0c0888ee1c2a8b5d8ffd208a1aa33a (diff)
downloadrails-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/lib/active_record/migration')
-rw-r--r--activerecord/lib/active_record/migration/command_recorder.rb14
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