Optimistic Locking for Rails ActiveRecord models.