Using a JSONB attribute for the data column

Hi! I am learning about JSONB with Postgres since I think it may solve a problem I have. I was wondering, would Shrine work with the attachment data stored in a JSONB attribute instead of a standard column, as long as I define accessors for the attribute? Any potential issues to be aware of?

Thanks!

Yes it works with JSONB type with no additional configuration needed. It’s mentioned in the quick start guide. No issues that I’m aware of.

1 Like

Wonderful, thanks! I didn’t think it would be covered in the guide.