It is true that several gems exist for handling this. however, from my experience, unless a gem provides functionality beyond my desire to create said functionality, it is better to either create and maintain your own gem or have it baked into your application. I say this because I have seen so many cases where gems are not kept up to date or have complications with Rails updates.
I think that some gems are fine to add, but I do take careful consideration before adding them in.
This line `ApplicationRecord.connected?`is returning false most of the times. If I `curl` to my production server twice in a row, second time it returns true, but first one false.
I changed it for: `User.count > 0`, which is true all times (unless site is down, of course)
This a Rails 5 app. Database connections are not permanent?