diff options
-rw-r--r-- | railties/guides/source/migrations.textile | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/railties/guides/source/migrations.textile b/railties/guides/source/migrations.textile index 3595ed90f4..cfd89721ad 100644 --- a/railties/guides/source/migrations.textile +++ b/railties/guides/source/migrations.textile @@ -399,10 +399,8 @@ change_table :products do |t| end </ruby> -You don't have to keep repeating the table name and it groups all the statements -related to modifying one particular table. The individual transformation names -are also shorter, for example +remove_column+ becomes just +remove+ and -+add_index+ becomes just +index+. +removes the +description+ and +name+ columns, creates a +part_number+ string +column and adds an index on it. Finally it renames the +upccode+ column. h4. Special Helpers |