Module | ActiveRecord::Validations |
In: |
lib/active_record/validations/uniqueness.rb
lib/active_record/validations/associated.rb lib/active_record/validations.rb |
The validation process on save can be skipped by passing false. The regular Base#save method is replaced with this when the validations module is mixed in, which it is by default.
Attempts to save the record just like Base#save but will raise a RecordInvalid exception instead of returning false if the record is not valid.