Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #
- # To use: copy this file to database.yml, change profile at the top to load the appropriate
- # profile
- #
- <% profile = "mysql" %>
- # Login information is the same for all database
- login: &login
- username: devwww
- password: devwww
- host: localhost
- # Postgres configuration ---------------
- development_pgsql: &development_pgsql
- adapter: postgresql
- database: forumwarz_development
- <<: *login
- test_pgsql: &test_pgsql
- adapter: postgresql
- database: forumwarz_test
- <<: *login
- production_pgsql: &production_pgsql
- <<: *development_pgsql
- # SQLite3 Configuration ---------------
- development_sqlite3: &development_sqlite3
- adapter: sqlite3
- database: db/dev.db
- test_sqlite3: &test_sqlite3
- adapter: sqlite3
- database: db/test.db
- production_sqlite3: &development_sqlite3
- adapter: sqlite3
- database: db/dev.db
- # Mysql config -------------------------
- # set memory: true if you want to enable the :memory option on create_table. This puts tables
- # with infrequently changing data into memory.
- development_mysql: &development_mysql
- memory: false
- adapter: mysql
- database: forumwarz_development
- #database: forumwarz_production
- username: devwww
- password: devwww
- <<: *login
- test_mysql: &test_mysql
- adapter: mysql
- database: forumwarz_test
- <<: *login
- production_mysql: &production_mysql
- memory: false
- adapter: mysql
- database: forumwarz_production
- username: devwww
- password: devwww
- host: localhost
- # Finally, load the appropriate keys
- development:
- <<: *development_<%= profile %>
- test:
- <<: *test_<%= profile %>
- production:
- <<: *production_<%= profile %>
Add Comment
Please, Sign In to add comment