Skip to content

Instantly share code, notes, and snippets.

@lalitlogical
Created December 18, 2018 06:10
Show Gist options
  • Save lalitlogical/fc7916e8af2ec04bb7b2aa95482490a6 to your computer and use it in GitHub Desktop.
Save lalitlogical/fc7916e8af2ec04bb7b2aa95482490a6 to your computer and use it in GitHub Desktop.
database yml
default: &default
adapter: postgresql
host: <%= ENV['DB_HOST'] %>
encoding: unicode
pool: 5
username: <%= ENV['DB_USERNAME'] %>
password: <%= ENV['DB_PASSWORD'] %>
database: <%= ENV['DB_DATABASE'] %>
template: template0
development:
<<: *default
database: <%= ENV['DB_DATABASE'] %>
test:
<<: *default
database: <%= ENV['DB_DATABASE'] %>
staging:
<<: *default
database: <%= ENV['DB_DATABASE'] %>
production:
<<: *default
database: <%= ENV['DB_DATABASE'] %>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment