aboutsummaryrefslogtreecommitdiffstats
path: root/railties/lib/rails
diff options
context:
space:
mode:
authorXavier Noria <fxn@hashref.com>2012-02-24 20:59:14 +0100
committerXavier Noria <fxn@hashref.com>2012-02-24 21:04:38 +0100
commit004326ecea6ad267b03cf7737b489e6622301985 (patch)
treebd0b07b3883d275aad246d1432b1f6d1e09cd18a /railties/lib/rails
parent5d70791ed0045daf16f773daffb6a388d02b49e7 (diff)
downloadrails-004326ecea6ad267b03cf7737b489e6622301985.tar.gz
rails-004326ecea6ad267b03cf7737b489e6622301985.tar.bz2
rails-004326ecea6ad267b03cf7737b489e6622301985.zip
removes the reconnect key from the database.yml generated for MySQL
The reconnect flag does not play nicely with transactions and so it is of little use in Rails applications. Thus, albeit supported by mysql2, it does not deserve such a prominent place in the generated database.yml, which should be a representative config example. Note that the flag is false by default. Advanced users know from mysql2 docs that the flag is available.
Diffstat (limited to 'railties/lib/rails')
-rw-r--r--railties/lib/rails/generators/rails/app/templates/config/databases/mysql.yml12
1 files changed, 0 insertions, 12 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 dec4f3d395..c3349912aa 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
@@ -11,10 +11,6 @@
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
username: root
@@ -31,10 +27,6 @@ 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
username: root
@@ -48,10 +40,6 @@ 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
username: root