# SQLite version 3.x
#   gem install sqlite3
#
#   Ensure the SQLite 3 gem is defined in your Gemfile
#   gem 'sqlite3'
#
# 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.

default_postgres: &default_postgres
  adapter: postgresql
  encoding: unicode
  pool: 5
  username: <%= ENV["DB_USERNAME"] %>
  password: <%= ENV["DB_PASSWORD"] || ENV["POSTGRES_PASSWORD"] %>
  port: <%= ENV["POSTGRES_PORT"] || 5432 %>
  host: <%= ENV["POSTGRES_HOST"] || 'localhost' %>

development_postgres: &development_postgres
  <<: *default_postgres
  host: localhost
  username: postgres
  password: password
  
production:
  <<: *default_postgres
  database: geghard_PRODUCTION

staging:
  <<: *default_postgres
  database: geghard_STAGING

development:
  <<: *development_postgres
  database: geghard_DEVELOPMENT

test:
  <<: *development_postgres
  database: geghard_TEST
  

# SQLite version 3.x
#   gem install sqlite3
#
#   Ensure the SQLite 3 gem is defined in your Gemfile
#   gem 'sqlite3'
#
# 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.

default_postgres: &default_postgres
  adapter: postgresql
  encoding: unicode
  pool: 5
  username: <%= ENV["DB_USERNAME"] || 'postgres' %>
  password: <%= ENV["DB_PASSWORD"] || ENV["POSTGRES_PASSWORD"] %>
  port: <%= ENV["POSTGRES_PORT"] || 5432 %>
  host: <%= ENV["POSTGRES_HOST"] || 'localhost' %>

development_postgres: &development_postgres
  <<: *default_postgres
  host: localhost
  username: postgres
  password: password
  
production:
  <<: *default_postgres
  database: geghard_PRODUCTION

staging:
  <<: *default_postgres
  database: geghard_STAGING

development:
  <<: *development_postgres
  database: geghard_DEVELOPMENT

test:
  <<: *development_postgres
  database: geghard_TEST
  

Add a default db user
Add a default db user
