Weird lock_version issue.

2 views
Skip to first unread message

Tim Uckun

unread,
Dec 10, 2009, 7:16:01 PM12/10/09
to wellrailed
I have a situation where the lock version of a record keeps going up
but the updated_at doesn't. I also have acts_as_audited on the model
but the audit table does not show any edits only the create.

This seems like an impossibility. Something is updating the table but
only changing the lock_version field and bypassing the model so the
audit doesn't register.

Can anybody think of what process might be doing that?

Michael Koziarski (nzkoz)

unread,
Dec 10, 2009, 7:41:45 PM12/10/09
to WellRailed
Probably a side-effect of partial updates. You save the record and
lock-version changes, but no attributes were changed so it doesn't get
considered 'updated'?

Try turning them off and seeing if it addresses itself.
Reply all
Reply to author
Forward
0 new messages