-
Notifications
You must be signed in to change notification settings - Fork 902
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Transaction support for restoring associations #345
Conversation
add has many associations functionality
Hope here will be a full test coverage. @lyfeyaj if you have a time for pairing, we can try to write some code together to get this done and push to the master. |
dd4280e
to
a683be8
Compare
Is this the preferred method for taking care of has_manies? in my code, I am storing the other papertrail record ids in a metadata field. What's the advantage of using another table? Does that hurt speed at all? I bet it would be easier to migrate though. |
I submitted a PR for fixing the merge conflicts: lyfeyaj#2 |
@lyfeyaj why is the transaction_id being stored on the module? (PaperTrail.transaction_id) |
This pull request is mostly a re-implementation of the work done by @tderks and @cambridgemike with some bug fix. I didn't add tests for this pull request. Anyway, I think this solution for has-many association is ready and are already in our company's production mode. And the reason I open this pull request here is want to welcome anybody to help to test it to find if there are still some bugs and if possible add tests for it.