Skip to content

Instantly share code, notes, and snippets.

@mgreenly
Created January 27, 2012 16:33
Show Gist options
  • Select an option

  • Save mgreenly/1689643 to your computer and use it in GitHub Desktop.

Select an option

Save mgreenly/1689643 to your computer and use it in GitHub Desktop.
generic database.yml for postgres
development:
adapter: postgresql
encoding: unicode
database: <%= File.basename(Rails.root) %>_development
pool: 5
username: <%= ENV['USER'] %>
password:
test:
adapter: postgresql
encoding: unicode
database: <%= File.basename(Rails.root) %>_test
pool: 5
username: <%= ENV['USER'] %>
password:
production:
adapter: postgresql
encoding: unicode
database: <%= File.basename(Rails.root) %>_production
pool: 5
username: <%= ENV['USER'] %>
password:
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment