Expose default value of database connection pool in generated database.yml

This commit is contained in:
Pratik Naik 2008-10-19 19:54:35 +01:00
parent ba80ff74a9
commit 39e1911463
4 changed files with 12 additions and 0 deletions

@ -18,6 +18,7 @@ development:
adapter: mysql
encoding: utf8
database: <%= app_name %>_development
pool: 5
username: root
password:
<% if socket -%>
@ -33,6 +34,7 @@ test:
adapter: mysql
encoding: utf8
database: <%= app_name %>_test
pool: 5
username: root
password:
<% if socket -%>
@ -45,6 +47,7 @@ production:
adapter: mysql
encoding: utf8
database: <%= app_name %>_production
pool: 5
username: root
password:
<% if socket -%>

@ -12,6 +12,7 @@ development:
adapter: postgresql
encoding: unicode
database: <%= app_name %>_development
pool: 5
username: <%= app_name %>
password:
@ -37,6 +38,7 @@ test:
adapter: postgresql
encoding: unicode
database: <%= app_name %>_test
pool: 5
username: <%= app_name %>
password:
@ -44,5 +46,6 @@ production:
adapter: postgresql
encoding: unicode
database: <%= app_name %>_production
pool: 5
username: <%= app_name %>
password:

@ -3,6 +3,7 @@
development:
adapter: sqlite
database: db/development.sqlite2
pool: 5
# Warning: The database defined as "test" will be erased and
# re-generated from your development database when you run "rake".
@ -10,7 +11,9 @@ development:
test:
adapter: sqlite
database: db/test.sqlite2
pool: 5
production:
adapter: sqlite
database: db/production.sqlite2
pool: 5

@ -3,6 +3,7 @@
development:
adapter: sqlite3
database: db/development.sqlite3
pool: 5
timeout: 5000
# Warning: The database defined as "test" will be erased and
@ -11,9 +12,11 @@ development:
test:
adapter: sqlite3
database: db/test.sqlite3
pool: 5
timeout: 5000
production:
adapter: sqlite3
database: db/production.sqlite3
pool: 5
timeout: 5000