I\'m quite new to Rails and found a little snippet to validate presence and uniqueness step by step: first check presence, then check uniqueness.
validates :
The following distinction can be useful to know:
presence: true # nil and empty string fail validation presence: true, allow_blank: true # nil fails validation, empty string passes