Skip to content

Instantly share code, notes, and snippets.

@afr-dt
Created May 2, 2018 07:42
Show Gist options
  • Save afr-dt/905da9e5132ba7ae4df9b6c1456d38bc to your computer and use it in GitHub Desktop.
Save afr-dt/905da9e5132ba7ae4df9b6c1456d38bc to your computer and use it in GitHub Desktop.
Config database.yml from Rails 5 with Postgres for development
# PostgreSQL. Versions 9.1 and up are supported.
default: &default
adapter: postgresql
encoding: unicode
# For details on connection pooling, see Rails configuration guide
# http://guides.rubyonrails.org/configuring.html#database-pooling
host: localhost
database: development
pool: <%= ENV.fetch("RAILS_MAX_THREADS") { 5 } %>
username: ror
password: ultrasecret
development:
<<: *default
database: development
test:
<<: *default
database: test
production:
<<: *default
database: production
username: ror
password: <%= ENV['ROR_DATABASE_PASSWORD'] %>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment