Advertisement
Guest User

Untitled

a guest
Mar 8th, 2017
155
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.64 KB | None | 0 0
  1. #### Gemfile
  2.  
  3. - Delete the line with sqlite and replace it with:
  4.  
  5. ```
  6. gem 'pg'
  7. ```
  8.  
  9. #### database.yml
  10.  
  11. - assuming your app name is "ror", replace with:
  12.  
  13. ```
  14. default: &default
  15. adapter: postgresql
  16. username:
  17. password:
  18. host: localhost
  19.  
  20. development:
  21. <<: *default
  22. database: ror_development
  23.  
  24. # Warning: The database defined as "test" will be erased and
  25. # re-generated from your development database when you run "rake".
  26. # Do not set this db to the same as development or production.
  27. test:
  28. <<: *default
  29. database: ror_test
  30.  
  31. production:
  32. <<: *default
  33. database: ror_production
  34. ```
  35.  
  36. #### Run:
  37.  
  38. ```
  39. bundle
  40. bin/rake db:setup
  41. bin/rake db:migrate
  42. ```
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement