In the configuration file example for Puma, it says the following for the on_restart function:
Code to run before doing a restart. This code should close log files, database connections, etc.
Do I need to implement this for a Rails app, to close connections to the db and the logfile, or is that taken care of automatically? If not, how do I actually do all that?