Created
January 12, 2023 01:26
-
-
Save JuanequeX/71ba6b5ba2616055117e68e8594102eb to your computer and use it in GitHub Desktop.
This is a example of postgraseql database.yml
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 | |
user: <%= ENV['DATABASE_USER'] %> | |
password: <%= ENV['DATABASE_PW'] %> | |
host: <%= ENV['DATABASE_HOST'] %> | |
port: <%= ENV['DATABASE_PORT'] %> | |
encoding: unicode | |
pool: <%= ENV.fetch("RAILS_MAX_THREADS") { 5 } %> | |
development: | |
<<: *default | |
database: <%= ENV['DATABASE_DEVELOPMENT'] %> | |
test: | |
<<: *default | |
database: <%= ENV['DATABASE_TEST'] %> | |
production: | |
database: <%= ENV['DATABASE_URL'] %> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment