Last active
April 9, 2023 01:23
-
-
Save salvadorgascon/6ff16320552ab1326f1fc739c3d7fd08 to your computer and use it in GitHub Desktop.
PostgreSQL database configuration for Ruby on Rails
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
default: &default | |
adapter: postgresql | |
encoding: utf8 | |
pool: <%= ENV.fetch("RAILS_MAX_THREADS") { 5 } %> | |
host: <%= ENV['PG_HOSTNAME'] %> | |
timeout: 5000 | |
development: | |
<<: *default | |
database: <%= ENV['PG_DATABASE_DEV'] %> | |
username: <%= ENV['PG_USERNAME_DEV'] %> | |
password: <%= ENV['PG_USERPASSWORD_DEV'] %> | |
reconnect: false | |
test: | |
<<: *default | |
database: <%= ENV['PG_DATABASE_TEST'] %> | |
username: <%= ENV['PG_USERNAME_TEST'] %> | |
password: <%= ENV['PG_USERPASSWORD_TEST'] %> | |
reconnect: false |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment