default: &default

adapter: postgresql
encoding: unicode
pool: <%= ENV.fetch('RAILS_MAX_THREADS') { 5 } %>

development: &development

<<: *default
host: postgres
port: 5432
username: postgres
password: postgres
database: '<%= "#{app_name}_development" %>'

test:

<<: *development
database: '<%= "#{app_name}_test" %>'

production:

<<: *default
url: <%= ENV['DATABASE_URL'] %>