default: &default
  adapter: postgresql
  encoding: unicode
  pool: <%= ENV.fetch("RAILS_MAX_THREADS") { 5 } %>
  timeout: 5000
  pool: 5
  host: localhost

development:
  <<: *default
  database: bfnz_development
  username: bfnz
  password: secret

# Warning: The database defined as "test" will be erased and
# re-generated from your development database when you run "rake".
# Do not set this db to the same as development or production.
test:
  <<: *default
  database: bfnz_test
  username: bfnz
  password: secret

production:
  <<: *default
  database: bfnz_production
  username: bfnz
  password: <%= ENV['BFNZ_DATABASE_PASSWORD'] %>

default: &default
  adapter: postgresql
  encoding: unicode
  pool: <%= ENV.fetch("RAILS_MAX_THREADS") { 5 } %>
  timeout: 5000
  pool: 5
  host: localhost

development:
  <<: *default
  database: bfnz_development
  username: bfnz
  password: secret

# Warning: The database defined as "test" will be erased and
# re-generated from your development database when you run "rake".
# Do not set this db to the same as development or production.
test:
  <<: *default
  database: bfnz_test
  username: bfnz
  password: secret

production:
  <<: *default
  database: bfnz_production
  username: bfnz
  password: <%= ENV['POSTGRESQL_PASSWORD'] %>

Use default cloud66 db password env on production
Use default cloud66 db password env on production
