does rails provide anything like this: Model.where(conditions).update do |record| record.update(attrs) end b/c that's an API abstract enough to be mapped onto almost any underlying store while providing consistency e.g. look at react's setState((state) => newState) API
If I understand what you're expecting the semantics of that to be correctly, `Model.where(conditions).lock.each` inside a transaction would do it
-
-
This Tweet is unavailable.
-
"how many records could this user have possibly generated?" i thought to myself as i yeeted the commit into the repo.
End of conversation
-
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.