Browse files

added the list of reversible commands in the newer migrations

  • Loading branch information...
1 parent b105dc4 commit c1132f7093b29e6acb95be4d262a07d5b04082d3 @vijaydev vijaydev committed Apr 26, 2011
Showing with 6 additions and 2 deletions.
  1. +6 −2 railties/guides/source/migrations.textile
View
8 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.

0 comments on commit c1132f7

Please sign in to comment.