sqlite: &sqlite
  adapter: sqlite3
  database: db/<%= Rails.env %>.sqlite3

postgresql: &postgresql
  adapter: postgresql
  database: <%=ENV['OPENSHIFT_APP_NAME']%>
  username: <%=ENV['OPENSHIFT_POSTGRESQL_DB_USERNAME']%>
  password: <%=ENV['OPENSHIFT_POSTGRESQL_DB_PASSWORD']%>
  host:     <%=ENV['OPENSHIFT_POSTGRESQL_DB_HOST']%>
  port:     <%=ENV['OPENSHIFT_POSTGRESQL_DB_PORT']%>
  min_messages: ERROR
  reconnect: false

defaults: &defaults
  pool: 5
  timeout: 5000
  encoding: utf8
  <<: *<%= ENV['RAILS_DB'] || "sqlite" %>

development:
  <<: *defaults

test: &test
  <<: *defaults

production:
  <<: *defaults

Add database config file for dev to ease setup
Add database config file for dev to ease setup

The reference to the .openshift directory doesn't work for running
locally. With this in mind, an extra db config file was originally
created (database_prod.yml) with the idea in mind that the two would
switch off. It happens that the main file was carelessly overwritten
before so now both have prod style db configs.

Putting the dev file here also makes it easy to read into the main file as
needed, without the need to recommit a main file that will cause
deployments to fail.
