52 lines
1.2 KiB
YAML
52 lines
1.2 KiB
YAML
default: &default
|
|
adapter: trilogy
|
|
host: <%= ENV.fetch "DB_HOST", "127.0.0.1" %>
|
|
port: <%= ENV.fetch "DB_PORT", 33380 %>
|
|
pool: 50
|
|
timeout: 5000
|
|
|
|
development:
|
|
primary:
|
|
<<: *default
|
|
database: fizzy_development
|
|
cable:
|
|
<<: *default
|
|
database: development_cable
|
|
migrations_paths: db/cable_migrate
|
|
cache:
|
|
<<: *default
|
|
database: development_cache
|
|
migrations_paths: db/cache_migrate
|
|
queue:
|
|
<<: *default
|
|
database: development_queue
|
|
migrations_paths: db/queue_migrate
|
|
|
|
# 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:
|
|
primary:
|
|
<<: *default
|
|
database: fizzy_test
|
|
|
|
production: &production
|
|
primary:
|
|
<<: *default
|
|
database: fizzy_<%= Rails.env %>
|
|
cable:
|
|
<<: *default
|
|
database: <%= Rails.env %>_cable
|
|
migrations_paths: db/cable_migrate
|
|
cache:
|
|
<<: *default
|
|
database: <%= Rails.env %>_cache
|
|
migrations_paths: db/cache_migrate
|
|
queue:
|
|
<<: *default
|
|
database: <%= Rails.env %>_queue
|
|
migrations_paths: db/queue_migrate
|
|
|
|
beta: *production
|
|
staging: *production
|