How do I get all the empty records for a jsonb column with Active Record ?
Dismiss
Announcing Stack Overflow Documentation
We started with Q&A. Technical documentation is next, and we need your help.
Whether you're a beginner or an experienced developer, you can contribute.
You can query for empty objects in a JSONB column using the following syntax:
|
|||
|
null
? Or, are you looking for all rows where the jsonb column is an empty object '{}'? Some example code/sql would help here. – MrWillihog Jun 8 at 14:24