aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVijay Dev <vijaydev.cse@gmail.com>2011-06-24 12:31:14 +0530
committerVijay Dev <vijaydev.cse@gmail.com>2011-06-24 12:31:14 +0530
commit7f91eebae361f2f3a1558f6d899b372524509a2d (patch)
tree6ae1067bd1aba6d69db23a5671360e053f926e4b
parentf1d77bad265bd3f8f2c621c69613909e46e9e6ea (diff)
downloadrails-7f91eebae361f2f3a1558f6d899b372524509a2d.tar.gz
rails-7f91eebae361f2f3a1558f6d899b372524509a2d.tar.bz2
rails-7f91eebae361f2f3a1558f6d899b372524509a2d.zip
add missing methods supported by reversible migrations using the change method
-rw-r--r--activerecord/lib/active_record/migration/command_recorder.rb5
-rw-r--r--railties/guides/source/migrations.textile5
2 files changed, 8 insertions, 2 deletions
diff --git a/activerecord/lib/active_record/migration/command_recorder.rb b/activerecord/lib/active_record/migration/command_recorder.rb
index f01e94169f..5a572c76ae 100644
--- a/activerecord/lib/active_record/migration/command_recorder.rb
+++ b/activerecord/lib/active_record/migration/command_recorder.rb
@@ -6,8 +6,11 @@ module ActiveRecord
#
# * add_column
# * add_index
- # * add_timestamp
+ # * add_timestamps
+ # * change_column
+ # * change_column_default
# * create_table
+ # * remove_column
# * remove_timestamps
# * rename_column
# * rename_index
diff --git a/railties/guides/source/migrations.textile b/railties/guides/source/migrations.textile
index f17f686d47..501508f5ab 100644
--- a/railties/guides/source/migrations.textile
+++ b/railties/guides/source/migrations.textile
@@ -344,8 +344,11 @@ The +change+ method removes the need to write both +up+ and +down+ methods in th
* +add_column+
* +add_index+
-* +add_timestamp+
+* +add_timestamps+
+* +change_column+
+* +change_column_default+
* +create_table+
+* +remove_column+
* +remove_timestamps+
* +rename_column+
* +rename_index+