Cheatsheet for common rails generator examples
- Create a new model:
- rails g model Invoice name:string order:integer
- Create a join table between 2 existing models:
- rails generate migration CreateJoinTableCustomerInvoice customer invoice
Cheatsheet for common rails generator examples