izelnakri / paper_trail

Track and record all the changes in your database with Ecto. Revert back to anytime in history.
https://hex.pm/packages/paper_trail
MIT License
565 stars 92 forks source link

add insert_or_update/2 and insert_or_update!/2 #141

Closed cschmatzler closed 3 years ago

cschmatzler commented 3 years ago

finally fixes #23 after years

izelnakri commented 3 years ago

Thank you for your contribution @cschmatzler ! I'll review this PR within this 7 days.

izelnakri commented 3 years ago

Nice job, thank you for this feature! I'll pull and test it locally this week, meanwhile would appreciate if you apply my suggested default options to the methods. Talk to you soon :)