ActiveRecord::StrictValidations adds validations to ActiveRecord models to make sure they do not trigger database errors.
Rémi Prévost
BSD 3-Clause