add further clarity re: conventions
snake_case is also an option - so adding that in.
This commit is contained in:
parent
212bf44a31
commit
ed9d761815
|
@ -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