From 7f91eebae361f2f3a1558f6d899b372524509a2d Mon Sep 17 00:00:00 2001 From: Vijay Dev Date: Fri, 24 Jun 2011 12:31:14 +0530 Subject: add missing methods supported by reversible migrations using the change method --- activerecord/lib/active_record/migration/command_recorder.rb | 5 ++++- railties/guides/source/migrations.textile | 5 ++++- 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+ -- cgit v1.2.3