default: &default
  adapter: postgresql
  encoding: unicode
  pool: 10
  template: template0

development:
  <<: *default
  database: publishing_api_development
  url: <%= ENV["DATABASE_URL"]%>

test:
  <<: *default
  database: publishing_api_test
  url: <%= ENV["DATABASE_URL"].try(:sub, /([-_]development)?$/, '_test')%>

production:
  <<: *default
  # Rails reads values from DATABASE_URL env var.

default: &default
  adapter: postgresql
  encoding: unicode
  pool: 12
  template: template0

development:
  <<: *default
  database: publishing_api_development
  url: <%= ENV["DATABASE_URL"]%>

test:
  <<: *default
  database: publishing_api_test
  url: <%= ENV["DATABASE_URL"].try(:sub, /([-_]development)?$/, '_test')%>

production:
  <<: *default
  # Rails reads values from DATABASE_URL env var.

Increase activerecord connections to 12
Increase activerecord connections to 12

We've been getting sporadic spikes in activerecord connection errors because
all pooled connections were in use.  This is a sticking plaster for a bit
while we consider what the alternative solutions are.

https://sentry.io/govuk/app-publishing-api/issues/533025026/?query=is:unresolved
