Last active
March 24, 2021 04:02
-
-
Save phlco/7018401 to your computer and use it in GitHub Desktop.
database.yml for postgres
This file contains hidden or 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
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