default: &default
  adapter: postgresql
  encoding: utf8
  host: localhost
  port: 5432
  pool: <%= ENV['DB_POOL'] || ENV['MAX_THREADS'] || 5 %>
  timeout: 5000

development:
  <<: *default
  database: ohana_api_development

# 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: ohana_api_test

production:
  pool: <%= ENV['DB_POOL'] || ENV['MAX_THREADS'] || 5 %>
  url: <%= ENV['DATABASE_URL'] %>

default: &default
  adapter: postgresql
  encoding: utf8
  host: localhost
  port: 5432
  pool: <%= ENV['DB_POOL'] || ENV['MAX_THREADS'] || 5 %>
  url: <%= ENV['DATABASE_URL'] %>
  timeout: 5000

development:
  <<: *default
  database: ohana_api_development

# 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: ohana_api_test

production:
  pool: <%= ENV['DB_POOL'] || ENV['MAX_THREADS'] || 5 %>
  url: <%= ENV['DATABASE_URL'] %>

Allow DATABASE_URL to be used for any enviroment
Allow DATABASE_URL to be used for any enviroment

The DATABASE_URL setting will be used if it is present, otherwise the existing
defaults are used for development and test.
