Skip to content

Instantly share code, notes, and snippets.

@davidmccoy
Forked from CH-JesseMa/database.yml
Created April 8, 2014 15:38
Show Gist options
  • Save davidmccoy/10144578 to your computer and use it in GitHub Desktop.
Save davidmccoy/10144578 to your computer and use it in GitHub Desktop.
development: &defaults
adapter: postgresql
encoding: unicode
pool: 5
host: localhost
username: <%= `echo $USER`.chomp %>
password:
database: <%= File.basename(Rails.root) %>_development
test:
<<: *defaults
database: <%= File.basename(Rails.root) %>_test
production:
<<: *defaults
database: <%= File.basename(Rails.root) %>_production
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment