From e42e8319c08188700c5c45a6623ca0067ea1f1ed Mon Sep 17 00:00:00 2001 From: Yoshiyuki Hirano Date: Sun, 20 Aug 2017 09:06:37 +0900 Subject: Update database config in The Rails Comamnd Line of guide [ci skip] --- guides/source/command_line.md | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) (limited to 'guides') diff --git a/guides/source/command_line.md b/guides/source/command_line.md index 8ae01286e4..2cd8e02a77 100644 --- a/guides/source/command_line.md +++ b/guides/source/command_line.md @@ -645,13 +645,16 @@ $ cat config/database.yml # Configure Using Gemfile # gem 'pg' # -development: +default: &default adapter: postgresql encoding: unicode + # For details on connection pooling, see Rails configuration guide + # http://guides.rubyonrails.org/configuring.html#database-pooling + pool: <%= ENV.fetch("RAILS_MAX_THREADS") { 5 } %> + +development: + <<: *default database: gitapp_development - pool: 5 - username: gitapp - password: ... ... ``` -- cgit v1.2.3