Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

added the list of reversible commands in the newer migrations

  • Loading branch information...
commit c1132f7093b29e6acb95be4d262a07d5b04082d3 1 parent b105dc4
@vijaydev vijaydev authored
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.
Please sign in to comment.
Something went wrong with that request. Please try again.