Guest User

Untitled

a guest
Apr 22nd, 2018
98
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.66 KB | None | 0 0
  1. #
  2. # To use: copy this file to database.yml, change profile at the top to load the appropriate
  3. # profile
  4. #
  5.  
  6. <% profile = "mysql" %>
  7.  
  8.  
  9. # Login information is the same for all database
  10. login: &login
  11. username: devwww
  12. password: devwww
  13. host: localhost
  14.  
  15. # Postgres configuration ---------------
  16. development_pgsql: &development_pgsql
  17. adapter: postgresql
  18. database: forumwarz_development
  19. <<: *login
  20.  
  21. test_pgsql: &test_pgsql
  22. adapter: postgresql
  23. database: forumwarz_test
  24. <<: *login
  25.  
  26. production_pgsql: &production_pgsql
  27. <<: *development_pgsql
  28.  
  29. # SQLite3 Configuration ---------------
  30. development_sqlite3: &development_sqlite3
  31. adapter: sqlite3
  32. database: db/dev.db
  33.  
  34. test_sqlite3: &test_sqlite3
  35. adapter: sqlite3
  36. database: db/test.db
  37.  
  38. production_sqlite3: &development_sqlite3
  39. adapter: sqlite3
  40. database: db/dev.db
  41.  
  42. # Mysql config -------------------------
  43. # set memory: true if you want to enable the :memory option on create_table. This puts tables
  44. # with infrequently changing data into memory.
  45. development_mysql: &development_mysql
  46. memory: false
  47. adapter: mysql
  48. database: forumwarz_development
  49. #database: forumwarz_production
  50. username: devwww
  51. password: devwww
  52. <<: *login
  53.  
  54. test_mysql: &test_mysql
  55. adapter: mysql
  56. database: forumwarz_test
  57. <<: *login
  58.  
  59. production_mysql: &production_mysql
  60. memory: false
  61. adapter: mysql
  62. database: forumwarz_production
  63. username: devwww
  64. password: devwww
  65. host: localhost
  66.  
  67. # Finally, load the appropriate keys
  68. development:
  69. <<: *development_<%= profile %>
  70. test:
  71. <<: *test_<%= profile %>
  72. production:
  73. <<: *production_<%= profile %>
Add Comment
Please, Sign In to add comment