method
save!
v8.0.0 -
Show latest stable
- Class:
ActiveRecord::Validations
save!(**options)public
Attempts to save the record just like {ActiveRecord::Base#save}[rdoc-ref:Base#save] but will raise an ActiveRecord::RecordInvalid exception instead of returning false if the record is not valid.