aboutsummaryrefslogtreecommitdiff
path: root/config/database.yml
blob: 313bfde583f20fc72ca41885ddf7aa5bc75b4b2c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
default: &default
  adapter: postgresql
  encoding: unicode

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

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

production:
  <<: *default
  database: govuk_mini_environment_admin_production