Skip to content

Instantly share code, notes, and snippets.

@hungmi
Last active June 30, 2017 02:21
Show Gist options
  • Save hungmi/9431261ccac5c7536d2a776384e8c68a to your computer and use it in GitHub Desktop.
Save hungmi/9431261ccac5c7536d2a776384e8c68a to your computer and use it in GitHub Desktop.
config/database.yml
# config/database.yml
default: &default
adapter: postgresql
encoding: unicode
pool: <%= ENV.fetch('RAILS_MAX_THREADS') { 5 } %>
development:
<<: *default
database: AppName_development
test:
<<: *default
database: AppName_test
production:
<<: *default
database: <%= ENV['PG_DBNAME'] %>
username: <%= ENV['PG_USERNAME'] %>
password: <%= ENV['PG_PASSWORD'] %>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment