cdn/config/database.yml
2026-01-30 14:09:38 -05:00

42 lines
1.1 KiB
YAML

# PostgreSQL. Versions 9.3 and up are supported.
# gem install pg
#
# Ensure the pg gem is defined in your Gemfile
# gem "pg"
#
default: &default
adapter: postgresql
encoding: unicode
pool: <%= ENV.fetch("RAILS_MAX_THREADS") { 5 } %>
timeout: 5000
development:
<<: *default
database: cdn_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: cdn_test
production:
primary:
<<: *default
url: <%= ENV["DATABASE_URL"] %>
cache:
<<: *default
url: <%= ENV["CACHE_DATABASE_URL"] || ENV["DATABASE_URL"] %>
database: cdn_cache
migrations_paths: db/cache_migrate
queue:
<<: *default
url: <%= ENV["QUEUE_DATABASE_URL"] || ENV["DATABASE_URL"] %>
database: cdn_queue
migrations_paths: db/queue_migrate
cable:
<<: *default
url: <%= ENV["CABLE_DATABASE_URL"] || ENV["DATABASE_URL"] %>
database: cdn_cable
migrations_paths: db/cable_migrate