price-point-api/config/database.yml

20 lines
513 B
YAML
Raw Permalink Normal View History

2026-05-17 11:12:43 +00:00
default: &default
2026-05-25 16:11:54 +00:00
adapter: postgresql
encoding: unicode
2026-05-17 11:12:43 +00:00
pool: <%= ENV.fetch("RAILS_MAX_THREADS") { 5 } %>
2026-05-25 16:11:54 +00:00
host: <%= ENV.fetch("DATABASE_HOST", "localhost") %>
port: <%= ENV.fetch("DATABASE_PORT", 5432) %>
username: <%= ENV.fetch("DATABASE_USER", "postgres") %>
password: <%= ENV.fetch("DATABASE_PASSWORD", "password") %>
2026-05-17 11:12:43 +00:00
development:
<<: *default
2026-05-25 16:11:54 +00:00
database: price_point_development
2026-05-17 11:12:43 +00:00
test:
<<: *default
2026-05-25 16:11:54 +00:00
database: price_point_test
2026-05-17 11:12:43 +00:00
production:
2026-05-25 16:11:54 +00:00
<<: *default
database: price_point_production