Skip to content

Instantly share code, notes, and snippets.

@JuanequeX
Created January 12, 2023 01:26
Show Gist options
  • Save JuanequeX/71ba6b5ba2616055117e68e8594102eb to your computer and use it in GitHub Desktop.
Save JuanequeX/71ba6b5ba2616055117e68e8594102eb to your computer and use it in GitHub Desktop.
This is a example of postgraseql database.yml
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