I read on Heroku that for Rails (4+ they say) I should add the following directive to Puma, when I use multiple workers and I preload the app:
on_worker_boot do
ActiveRecord::Base.establish_connection
end
However I have both preload_app! and multiple workers without that code... and the app seems to work fine.
Am I missing something? Is that still required? What is the purpose?