Skip to content

Instantly share code, notes, and snippets.

@CH-JesseMa
Forked from phlco/database.yml
Created April 6, 2014 15:36
Show Gist options
  • Save CH-JesseMa/10007712 to your computer and use it in GitHub Desktop.
Save CH-JesseMa/10007712 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