Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- when in bash model attributes are string by default
- db/migrate/<file> check model before migrating
- rails generate migration AddPriceToProducts
- Add<string>To<model name plural>
- precision:<overall digits> scale:<digits to the right>
- add to and remove can be done in terminal
- AddStockToProducts stock
- shorthand for bundle install is bundle
- rake db:seed:dump
- saves current items to seeds.rb file
- rake db:seed
- updates our database with our current seed file if we dropped our db
- the order after a dump should be
- rake db:create
- rake db:migrate
- rake db:seed
Add Comment
Please, Sign In to add comment