class ActiveRecord::CheckViolation

Raised when a record cannot be inserted or updated because it would violate a check constraint.