Task | Command |
---|---|
Start server | rails s |
Start console | rails c |
Generate a db migration to add columns |
rails generate migration add_column_to_some_table column_name:string...
|
Generate a db migration to add index |
rails generate migration add_index_to_some_table
|
Generate new model |
rails generate model loan_charge product:references listener_reference:string
fixed_charge:integer min_charge:integer max_charge:integercharge_percentage:float
|
Tuesday, August 21, 2012
Rails daily usage cheat sheet
Labels:
Cheatsheet,
Favourite,
Rails
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment
Note: Only a member of this blog may post a comment.