I have Follow model in my rails app and when user follow some content - record created, unfollow - record deleted.
I need track this changes in separate table (insert and delete only).
It will be used to build some reports with plain SQL - thats why table should have similar structure aka "shadow"
I don't want polute original model with additional logic - there is some solutions but they don't flexible enough:
https://github.com/rubiety/has_draft - I can't select specific operations
https://github.com/bglusman/ruby-shadow-tables - raw and mysql only
Does anybody know some good solution for such case?