aboutsummaryrefslogtreecommitdiffstats
path: root/railties/guides/source/migrations.textile
diff options
context:
space:
mode:
authorVijay Dev <vijaydev.cse@gmail.com>2011-04-26 23:40:47 +0530
committerVijay Dev <vijaydev.cse@gmail.com>2011-04-26 23:40:47 +0530
commitc1132f7093b29e6acb95be4d262a07d5b04082d3 (patch)
treee4393e8de8a5030592ffd0c44149d26db11d2187 /railties/guides/source/migrations.textile
parentb105dc441b078e3b0db1affc94f970c6233ee709 (diff)
downloadrails-c1132f7093b29e6acb95be4d262a07d5b04082d3.tar.gz
rails-c1132f7093b29e6acb95be4d262a07d5b04082d3.tar.bz2
rails-c1132f7093b29e6acb95be4d262a07d5b04082d3.zip
added the list of reversible commands in the newer migrations
Diffstat (limited to 'railties/guides/source/migrations.textile')
-rw-r--r--railties/guides/source/migrations.textile8
1 files changed, 6 insertions, 2 deletions
diff --git a/railties/guides/source/migrations.textile b/railties/guides/source/migrations.textile
index 18ae8a2251..27f8a9303e 100644
--- a/railties/guides/source/migrations.textile
+++ b/railties/guides/source/migrations.textile
@@ -342,10 +342,14 @@ h4. Writing Your +change+ Method
The +change+ method removes the need to write both +up+ and +down+ methods in those cases that Rails know how to revert the changes automatically. Currently, the +change+ method supports only these migration definitions:
-* +create_table+
* +add_column+
-* +rename_column+
* +add_index+
+* +add_timestamp+
+* +create_table+
+* +remove_timestamps+
+* +rename_column+
+* +rename_index+
+* +rename_table+
If you're going to use other methods, you'll have to write the +up+ and +down+ methods normally.