SHARE
TWEET

Untitled

a guest Jan 23rd, 2019 61 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. deleting a db, rake db:drop
  2. removing the rails app, rm -rf app_name
  3. when changing/ adding models to your app, do you have to type in save or does it just save?
  4. rails generate migration
  5. then rake add it to the db: rake db:migrate
  6.  
  7. SQL process - translating ruby into SQL
  8. rake db:migrate - wfiling cabinet
  9. rails generate migration - creates files; do skip this part;
  10. seeds.rb - run db file; apllies data into the structure
  11. do not use lightly: rake db:rollback (ASK FOR HELP)
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top