Since Rails 5, domain models inherit from ApplicationRecord by default.
ApplicationRecord
We make sure that your target audience has the best possible experience with your digital product. You get:
This is the place to put code that should be available in all your application's models. There is no reason to monkey-patch ActiveRecord::Base when following that practice.
ActiveRecord::Base