default: &default

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

<%% if ENV == “true” %>

host: localhost
username: postgres

<%% end %>

development:

<<: *default
database: canary_development
#password:
#port:
#schema_search_path:
#min_messages: notice

test:

<<: *default
database: canary_test

production:

<<: *default
database: <%= abort("Please create a standalone Jobshop app if you wish to run a production environment") if ENV.fetch("RAILS_ENV", "development") == "production" %>