Skip to content

`BulkInsertSafe` fails on bulk-inserting `jsonb`

Summary

As above. We insert jsonb as a string of a string of a json, instead of string, as we seem to double serialize data to database representation.

This means that on data deserialisation we receive a string, instead of json deserialised structure.

What is the current bug behavior?

(What actually happens)

Possible fixes

Related to https://github.com/rails/rails/issues/38716