aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/lib/active_record/migration
diff options
context:
space:
mode:
authoryui-knk <spiketeika@gmail.com>2015-08-30 20:28:55 +0900
committeryui-knk <spiketeika@gmail.com>2015-08-31 10:08:38 +0900
commitdf9cfc055a0c0888ee1c2a8b5d8ffd208a1aa33a (patch)
tree6844df2d6758f4929d11b6e1587f311a2f4f78bf /activerecord/lib/active_record/migration
parent79f44eb6c84fe1d7a7ba51f3f511d2e744788ef8 (diff)
downloadrails-df9cfc055a0c0888ee1c2a8b5d8ffd208a1aa33a.tar.gz
rails-df9cfc055a0c0888ee1c2a8b5d8ffd208a1aa33a.tar.bz2
rails-df9cfc055a0c0888ee1c2a8b5d8ffd208a1aa33a.zip
[ci skip] Update what methods `Migration#change` can reverse
* Documentations and comments about what methods `Migration#change` can reverse is out of date. For example `change_column_default` is now reversible by this [commit](https://github.com/rails/rails/pull/20018). * Comments about `CommandRecorder` dose not match with Rails Guide. For example `add_foreign_key` is listed only on Rails Guide.
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 a73ee18170..d41aac2a43 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