Implement custom AR type JsonPgSafe
Extends Rails' ActiveRecord::Type::Json data type to remove JSON encoded null bytes `\u0000` to prevent PostgreSQL errors like `PG::UntranslatableCharacter: ERROR: unsupported Unicode escape sequence`.
Showing
Please register or sign in to comment