title: What is the best way to undo a record update?
body: <p>I feel like I'm missing something obvious here, but here it goes.<br>
  I have local database that stores attributes of an Object. When I update an instance of the object, I also make a call to a remote API and update the record there as well.  If that API call is unsuccessful, I want to roll back my local record to whatever was previously held.  The only thing so far I can think to do is make a copy of the current record, before I update, and use that copy to re-update the record should my API call fail.  Is there a best practice for doing this?</p>