Files
PMS/config/database.yml
2026-01-29 12:00:13 +06:30

23 lines
621 B
YAML

default: &default
adapter: postgresql
encoding: unicode
# For details on connection pooling, see Rails configuration guide
# http://guides.rubyonrails.org/configuring.html#database-pooling
pool: <%= ENV.fetch("RAILS_MAX_THREADS") { 5 } %>
development:
<<: *default
database: todo_development
test:
<<: *default
database: todo_test
production:
<<: *default
database: <%= ENV['DB_NAME'] || 'todo_production' %>
username: <%= ENV['DB_USER'] %>
password: <%= ENV['DB_PASSWORD'] %>
host: <%= ENV['DB_HOST'] %>
# When using Cloud SQL with Cloud Run, the host is often /cloudsql/CONNECTION_NAME