jwood/tenacity

Add code to rollback changes on failure

Opened this issue · 0 comments

Since we do not have transactions to help us, we need to manually ensure that the objects in their respective database are not left in a corrupt state if, for some reason, we are unable to create or destroy a relationship. Add logic to validate, as much as possible, the objects before saving them. Also, create code to rollback a "transaction" if one of the operations fail.