tabletop-companion/config/database.yml

21 lines
506 B
YAML

default: &default
adapter: postgresql
encoding: unicode
pool: <%= ENV.fetch("RAILS_MAX_THREADS") { 5 } %>
timeout: 5000
host: <%= ENV.fetch("DB_HOST") { "localhost" } %>
username: <%= ENV.fetch("POSTGRES_USER") { "postgres" } %>
password: <%= ENV.fetch("POSTGRES_PASSWORD") { "postgres" } %>
development:
<<: *default
database: tabletop_companion_development
test:
<<: *default
database: tabletop_companion_test
production:
<<: *default
database: tabletop_companion_production