Created
May 2, 2018 07:42
-
-
Save afr-dt/905da9e5132ba7ae4df9b6c1456d38bc to your computer and use it in GitHub Desktop.
Config database.yml from Rails 5 with Postgres for development
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
# PostgreSQL. Versions 9.1 and up are supported. | |
default: &default | |
adapter: postgresql | |
encoding: unicode | |
# For details on connection pooling, see Rails configuration guide | |
# http://guides.rubyonrails.org/configuring.html#database-pooling | |
host: localhost | |
database: development | |
pool: <%= ENV.fetch("RAILS_MAX_THREADS") { 5 } %> | |
username: ror | |
password: ultrasecret | |
development: | |
<<: *default | |
database: development | |
test: | |
<<: *default | |
database: test | |
production: | |
<<: *default | |
database: production | |
username: ror | |
password: <%= ENV['ROR_DATABASE_PASSWORD'] %> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment