Destroy / delete with optimistic locking


Some of my models use optimistic locking, but it doesn’t change the
SQL delete command. What I get is just:
DELETE FROM things WHERE id = 62

Can I do anything so that the lock version also appears in this query
(which would make it play nice with optimistic locking)?


This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs