Skip to content

Commit

Permalink
removes the reconnect key from the database.yml generated for MySQL
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
fxn committed Feb 24, 2012
1 parent 5d70791 commit 004326e
Showing 1 changed file with 0 additions and 12 deletions.
Expand Up @@ -11,10 +11,6 @@
development: development:
adapter: mysql2 adapter: mysql2
encoding: utf8 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 database: <%= app_name %>_development
pool: 5 pool: 5
username: root username: root
Expand All @@ -31,10 +27,6 @@ development:
test: test:
adapter: mysql2 adapter: mysql2
encoding: utf8 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 database: <%= app_name %>_test
pool: 5 pool: 5
username: root username: root
Expand All @@ -48,10 +40,6 @@ test:
production: production:
adapter: mysql2 adapter: mysql2
encoding: utf8 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 database: <%= app_name %>_production
pool: 5 pool: 5
username: root username: root
Expand Down

0 comments on commit 004326e

Please sign in to comment.