Skip to content

Instantly share code, notes, and snippets.

@catm705
Last active August 29, 2015 13:58
Show Gist options
  • Save catm705/10010258 to your computer and use it in GitHub Desktop.
Save catm705/10010258 to your computer and use it in GitHub Desktop.
database.yml
#put $ echo $USER cgelinas in the terminal RIGHT AFTER putting this in your database.yml file!
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