Open g00ds0n opened 5 years ago
I am running into this as well, I am guessing that paper trail does not support JSON or JSONB?
AFAIK it doesn't support it but I'm happy to merge a pull request for this.
@g00ds0n @jdgarvey JSONB should be supported with the latest version 3.0.0-rc.11
. Let me know whether it does or does not work :)
Nope I still don't see my JSONB objects inside of document
. If you tell me where to start I can try and make a PR for you to look at.
@nielsgl As far as I can tell this is omitting JSONB columns because they are objects. I'm not exactly sure how to fix this.
I don't fully understand what that omitBy statement does, but I think using rawAttributes might fix this:
currentVersion = _.pick(currentVersion, Object.keys(instance.rawAttributes));
Check PR #85.
I don't see any of my JSONB columns being stored in the revisions. Am I doing something wrong or does paper trail not support JSONB for Postgres?