Add database config examples for all supported databases
Example for MySQL and PostgreSQL added. Fixes #1676 Update comments based on code review
This commit is contained in:
parent
952e8ac316
commit
4409610a89
1 changed files with 29 additions and 0 deletions
|
|
@ -9,6 +9,35 @@ development:
|
||||||
pool: 5
|
pool: 5
|
||||||
timeout: 5000
|
timeout: 5000
|
||||||
|
|
||||||
|
## PostgreSQL
|
||||||
|
## gem install pg
|
||||||
|
##
|
||||||
|
## Ensure the postgres gem is defined in your Gemfile
|
||||||
|
## gem 'pg'
|
||||||
|
## Update with your database name and login credentials
|
||||||
|
# development:
|
||||||
|
# adapter: postgresql
|
||||||
|
# encoding: unicode
|
||||||
|
# database: database_name
|
||||||
|
# pool: 5
|
||||||
|
# username: username
|
||||||
|
# password: password
|
||||||
|
|
||||||
|
## MySQL
|
||||||
|
## gem install mysql2
|
||||||
|
##
|
||||||
|
## Ensure the mysql gem is defined in your Gemfile
|
||||||
|
## gem 'mysql2'
|
||||||
|
## Update with your database name and login credentials
|
||||||
|
# development:
|
||||||
|
# adapter: mysql2
|
||||||
|
# encoding: utf8
|
||||||
|
# database: database_name
|
||||||
|
# pool: 5
|
||||||
|
# username: username
|
||||||
|
# password: password
|
||||||
|
# socket: /tmp/mysql.sock
|
||||||
|
|
||||||
# Warning: The database defined as "test" will be erased and
|
# Warning: The database defined as "test" will be erased and
|
||||||
# re-generated from your development database when you run "rake".
|
# re-generated from your development database when you run "rake".
|
||||||
# Do not set this db to the same as development or production.
|
# Do not set this db to the same as development or production.
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue