title: Rails: How to check if jsonb column is empty Postgres
body: <p>I am having trouble checking when the jsonb column of my table is empty.</p>
  
  <p>My column <strong>directions</strong> when empty has value <strong>"{}"</strong></p>
  
  <p>Tried the following</p>
  
  <pre><code>Model.where("directions != '{}'") &lt;- brings all
  Model.where("directions &lt;@ '{}'") &lt;- brings all
  </code></pre>
  
  <p>is there any other way that i am not aware of? Using postgresql 9.6</p>