David Kimura PRO said over 2 years ago on Discussing Race Conditions :
Absolutely. For a more detailed look into optimistic locking, there is a recent episode on the topic. https://www.driftingruby.com/episodes/optimistic-locking