Merge pull request #44 from BKSpurgeon/patch-1
add further clarity re: conventions
This commit is contained in:
commit
848d126a5b
|
@ -6,7 +6,10 @@ category: Rails
|
||||||
### Automatically make migrations
|
### Automatically make migrations
|
||||||
|
|
||||||
$ rails generate migration RemovePartNumberFromProducts part_number:string
|
$ rails generate migration RemovePartNumberFromProducts part_number:string
|
||||||
|
$ rails generate migration remove_part_number_from_products part_number # rails assumes string if not type given
|
||||||
|
|
||||||
$ rails generate migration AddNameToWidgets name:string
|
$ rails generate migration AddNameToWidgets name:string
|
||||||
|
$ rails generate migration add_name_to_widgets name:string
|
||||||
|
|
||||||
### Run migrations
|
### Run migrations
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue