Advertisement
Guest User

Untitled

a guest
Aug 2nd, 2016
85
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.84 KB | None | 0 0
  1. C:projects>rails new libray
  2.  
  3. default: &default
  4. adapter: sqlite3
  5. pool: 5
  6. timeout: 5000
  7.  
  8. development:
  9. <<: *default
  10. database: db/development.sqlite3
  11.  
  12. # Warning: The database defined as "test" will be erased and
  13. # re-generated from your development database when you run "rake".
  14. # Do not set this db to the same as development or production.
  15. test:
  16. <<: *default
  17. database: db/test.sqlite3
  18.  
  19. production:
  20. <<: *default
  21. database: db/production.sqlite3
  22.  
  23. development:
  24. adapter: mysql
  25. database: library_development
  26. username: root
  27. password: 1234
  28. host: localhost
  29.  
  30. test:
  31. adapter: mysql
  32. database: library_test
  33. username: root
  34. password: 1234
  35. host: localhost
  36.  
  37. production:
  38. adapter: mysql
  39. database: library_production
  40. username: root
  41. password: 1234
  42. host: localhost
  43.  
  44. C:projects>library>rails generate model book
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement