Raise error #4084

instead of using ActiveRecord validations
to ensure data integrity