You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We are trying to find a way on how to wrap multiple updates on a transaction + build the version but not sure what would be the right approach.
We have the following scenario:
I have a user and address schema.
A user may have many addresses.
When someone updates their address, i would also like to update the user's 'last_updated_at' date field (in the user table).
We currently have wrapped both updates on a Multi and they will be executed in a transaction.
Now we want to introduce versioning on the User Model but we see 1-2 ways that can be done:
Implement something like PaperTrail.multi? (that means that we need to provide which changesets are to be stored as versions or if the whole thing will be treated as one, etc)
The text was updated successfully, but these errors were encountered:
We are trying to find a way on how to wrap multiple updates on a transaction + build the version but not sure what would be the right approach.
We have the following scenario:
make_version_struct
(https://github.com/izelnakri/paper_trail/blob/master/lib/paper_trail.ex#L295 ) and add it on our existing multi (bypassing all other paper_trail logic which can not guarantee future-compatibility)PaperTrail.multi
? (that means that we need to provide which changesets are to be stored as versions or if the whole thing will be treated as one, etc)The text was updated successfully, but these errors were encountered: