ActiveRecord validations | Notion
ActiveRecord Validations
Validating length of an attribute
Validates format of an attribute
Validating presence of an attribute
Custom validations
Validating numericality of an attribute
Grouping validation
Validates inclusion of an attribute
Skipping Validations
Validate uniqueness of an attribute
Conditional validation
Confirmation of attribute
Using on option