Rails: commit inner nested transaction regardless of parent transaction rollback (requires_new: true is not enough)
Imagine an operation that needs to be protected against race conditions, and therefore is run inside a Rails with_lock
block.
Imagine an operation that needs to be protected against race conditions, and therefore is run inside a Rails with_lock
block.