aboutsummaryrefslogtreecommitdiffstats
path: root/railties/lib
diff options
context:
space:
mode:
Diffstat (limited to 'railties/lib')
-rw-r--r--railties/lib/rails/generators/rails/app/templates/config/databases/mysql.yml11
1 files changed, 10 insertions, 1 deletions
diff --git a/railties/lib/rails/generators/rails/app/templates/config/databases/mysql.yml b/railties/lib/rails/generators/rails/app/templates/config/databases/mysql.yml
index cce166c7c3..dec4f3d395 100644
--- a/railties/lib/rails/generators/rails/app/templates/config/databases/mysql.yml
+++ b/railties/lib/rails/generators/rails/app/templates/config/databases/mysql.yml
@@ -1,5 +1,5 @@
# MySQL. Versions 4.1 and 5.0 are recommended.
-#
+#
# Install the MYSQL driver
# gem install mysql2
#
@@ -11,6 +11,9 @@
development:
adapter: mysql2
encoding: utf8
+ # It is recommended to leave reconnect disabled because automatic
+ # reconnections do not play nicely with transactions, which are
+ # used by Active Record all over the place.
reconnect: false
database: <%= app_name %>_development
pool: 5
@@ -28,6 +31,9 @@ development:
test:
adapter: mysql2
encoding: utf8
+ # It is recommended to leave reconnect disabled because automatic
+ # reconnections do not play nicely with transactions, which are
+ # used by Active Record all over the place.
reconnect: false
database: <%= app_name %>_test
pool: 5
@@ -42,6 +48,9 @@ test:
production:
adapter: mysql2
encoding: utf8
+ # It is recommended to leave reconnect disabled because automatic
+ # reconnections do not play nicely with transactions, which are
+ # used by Active Record all over the place.
reconnect: false
database: <%= app_name %>_production
pool: 5