aboutsummaryrefslogtreecommitdiffstats
path: root/railties
diff options
context:
space:
mode:
authorPratik Naik <pratiknaik@gmail.com>2008-10-19 19:54:35 +0100
committerPratik Naik <pratiknaik@gmail.com>2008-10-19 19:54:35 +0100
commit39e1911463a0f50a901040b67cd29bd94dfac609 (patch)
tree793614b75d434350f6c77cddaa5cc351ee95fcd6 /railties
parentba80ff74a9627f676b4c426587ce5ea487665e46 (diff)
downloadrails-39e1911463a0f50a901040b67cd29bd94dfac609.tar.gz
rails-39e1911463a0f50a901040b67cd29bd94dfac609.tar.bz2
rails-39e1911463a0f50a901040b67cd29bd94dfac609.zip
Expose default value of database connection pool in generated database.yml
Diffstat (limited to 'railties')
-rw-r--r--railties/configs/databases/mysql.yml3
-rw-r--r--railties/configs/databases/postgresql.yml3
-rw-r--r--railties/configs/databases/sqlite2.yml3
-rw-r--r--railties/configs/databases/sqlite3.yml3
4 files changed, 12 insertions, 0 deletions
diff --git a/railties/configs/databases/mysql.yml b/railties/configs/databases/mysql.yml
index 7fcadcdf2c..a4406e4923 100644
--- a/railties/configs/databases/mysql.yml
+++ b/railties/configs/databases/mysql.yml
@@ -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 -%>
diff --git a/railties/configs/databases/postgresql.yml b/railties/configs/databases/postgresql.yml
index 36f6e5ae49..f600e054cf 100644
--- a/railties/configs/databases/postgresql.yml
+++ b/railties/configs/databases/postgresql.yml
@@ -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:
diff --git a/railties/configs/databases/sqlite2.yml b/railties/configs/databases/sqlite2.yml
index fc48bd6753..46f01cb42c 100644
--- a/railties/configs/databases/sqlite2.yml
+++ b/railties/configs/databases/sqlite2.yml
@@ -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
diff --git a/railties/configs/databases/sqlite3.yml b/railties/configs/databases/sqlite3.yml
index fff44a4124..025d62a8d8 100644
--- a/railties/configs/databases/sqlite3.yml
+++ b/railties/configs/databases/sqlite3.yml
@@ -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