method
save!
v5.2.3 -
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.