Replacing ActiveRecord::ConnectionAdapters::ConnectionManagement in ActiveRecord 5
|Added at||2016-12-30 18:12|
This is because connections were not being cleaned up after requests completed. Here is prior SO discussion on this topic:
Starting with ActiveRecord 5, this line no longer works. This conversation in the rails project states:
Does this mean that, if someone is to use ActiveRecord 5 with Sinatra, connections will be again 'leaked' or left un-returned to the pool after a request, unless the developer re-creates the now-removed middleware?
In the Sinatra example, is it therefore now the case that we need to include this line in ActiveRecord 5?
That is the implication on the linked-to thread, but I want to get a definite answer I can take back to my dev team.