-
-
Save ghostropic/10144154 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#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