Skip to content
This repository has been archived by the owner on Jun 28, 2023. It is now read-only.

Commit

Permalink
Try to reconnect to the db.
Browse files Browse the repository at this point in the history
  • Loading branch information
dazoakley committed May 9, 2014
1 parent 4244724 commit 30b2b70
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/bandiera/db.rb
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ def self.connection_string
str << '&useUnicode=true&characterEncoding=utf8'
str
else
conn.merge(adapter: 'mysql2', encoding: 'utf8', max_connections: 10)
conn.merge(adapter: 'mysql2', encoding: 'utf8', max_connections: 10, reconnect: true)
end
end
end
Expand Down

0 comments on commit 30b2b70

Please sign in to comment.