Take the 2-minute tour ×  In general, should the return value of
save always be checked when using ActiveRecord?  For example,
I've come across some code like this:  def
foo(active_record_instance)   active_record_instance.field_1 =
'a'   active_record_instance.field_2 = 'b'   # ...15 more
lines...   active_record_instance.save # <==   baz =
bar(active_record_instance.id)   # ...15 more lines that use
baz...  def bar(id)   instance = ActiveRecordSubclass.find(id)
instance.field_3 = instance.field_1 + instance.field_2  That's
slightly contrived, but it's a fairly realistic example for the
codebase I'm working on. (This isn't an isolated case of this
pattern.)  Given that the validation for ActiveRecordSubclass is
in flux and change is possible in the near future (or even a
year from now), my thought is that the return value of
active_record_instance.save should be checked. Another
alternative would be to use active_record_instance.save!.  Is it
appropriate to check whether or not the record saved? Or is the