Automatic Reconnection of MySQL Connections in Active Record
Active Record since version 2.3 supports this reconnect option. Per default it’s set to false, but it can be enabled by adding reconnect = true to database options in database.yml.
Active Record since version 2.3 supports this reconnect option. Per default it’s set to false, but it can be enabled by adding reconnect = true to database options in database.yml.