Currently, the settings are not strictly validated and this could cause confusions to users when something wrong happens. Learn from: - http://juixe.com/techknow/index.php/2006/07/29/rails-model-validators/ - https://guides.rubyonrails.org/active_record_validations.html - https://api.rubyonrails.org/classes/ActiveModel/Validator.html - https://pdabrowski.com/blog/ruby-on-rails/validations/building-custom-validator/ The spec should be done first before implementing.