New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
"Deprecation warning: Database connections will not be closed automatically" #59
Comments
What version of ActiveRecord are you using? |
You need to use the ActiveRecord rack middleware ActiveRecord:: ConnectionAdapters::ConnectionManagement so that the connections are closed down properly. |
OK, thank you Sorry, it looks like GitHub didn't get my reply email |
No problem! Evan Phoenix // evan@phx.io On Wednesday, April 11, 2012 at 11:08 AM, Luke Carpenter wrote:
|
For the record I get the same in JRuby (1.7.0.preview2) Fixed by adding |
Thanks! I was getting this too but only occasionally. |
"use ActiveRecord::ConnectionAdapters::ConnectionManagement" solved my issues with ClearDB on Heroku. |
I'm using Puma with Sinatra and ActiveRecord, and I've noticed a few lines being written to STDERR which I'm stuck with:
I'm using MRI, I can't test this on jRuby because less.rb demands therubyracer, which won't compile ⚡ 😞 ⚡
Is there a fix for this?
The text was updated successfully, but these errors were encountered: