AshPaperTrail
I am trying to update an ash resource which has ash_paper_trail enabled on it. but i get this error. Don't fully understand this yet
2 Replies
If you are doing full diff tracking, it requires us to know the "old state" and the "new state" alongside eachother
this is not something that can be done in a single atomic data layer operation
If you use a different change tracking mode like "changes only" then you can do atomic updates
otherwise you have to add
require_atomic? false
to support it, and be aware that those actions are not encessarily safe to run in parallel. Specifically, two actions might happen, they might read the same "old state", and then create two new versions indicating a change from that old state to the new
if I change now to
change_only
mode, will that need db migration ?