tabletop-companion/config/database.yml

23 lines
548 B
YAML
Raw Normal View History

2024-04-13 10:22:40 +00:00
default: &default
2024-04-13 13:13:37 +00:00
adapter: postgresql
encoding: unicode
2024-04-13 10:22:40 +00:00
pool: <%= ENV.fetch("RAILS_MAX_THREADS") { 5 } %>
timeout: 5000
2024-06-19 10:16:56 +00:00
host: <%= ENV.fetch("DB_HOST") { "localhost" } %>
2024-04-13 13:13:37 +00:00
username: <%= ENV.fetch("POSTGRES_USER") { "postgres" } %>
2024-04-13 10:22:40 +00:00
development:
<<: *default
database: tabletop_companion_development
2024-06-19 17:22:20 +00:00
password: postgres
2024-04-13 10:22:40 +00:00
test:
<<: *default
database: tabletop_companion_test
2024-06-19 17:22:20 +00:00
password: postgres
2024-04-13 10:22:40 +00:00
production:
<<: *default
database: tabletop_companion_production
2024-06-19 17:22:20 +00:00
password: <%= ENV.fetch("POSTGRES_PASSWORD") { "postgres" } %>