mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
Reword confusing section
This commit is contained in:
parent
a41295fdaa
commit
74807383aa
1 changed files with 2 additions and 4 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in a new issue