config/database.test.yml
# We currently support 3 databases
sqlite: &sqlite
adapter: sqlite3
mysql: &mysql
adapter: mysql2
username: root
password:
postgresql: &postgresql
adapter: postgresql
username: postgres
password:
# Switch a database by ENV['DB'].
# If ENV['DB'] is not set, sqlite is used.
default: &default
<<: *<%= ENV['DB'] || "sqlite" %>
host: 127.0.0.1
pool: 5
timeout: 5000
development:
<<: *default
database: lodge_development
# Warning: The database defined as "test" will be erased and
# re-generated from your development database when you run "rake".
# Do not set this db to the same as development or production.
test:
<<: *default
database: lodge_test
production:
<<: *default
database: lodge_production