Hacker News new | ask | show | jobs
by amichal 4902 days ago
Or no table changes with http://api.rubyonrails.org/classes/ActiveRecord/Locking/Pess...

but in this specific case `affected_rows` works better as long as you know its reliable.