title: Querying rails active record based on jsonb column
body: <p>I have record named <strong>User</strong> which is having a column called <strong>attrs</strong>.</p>
  
  <p>The <strong>attrs</strong> is a jsonb column. The record looks like below:</p>
  
  <p>I am posting <code>as_json</code> record of a  User.</p>
  
  <pre><code>{
    "id"=&gt;uuid1,
    "profile_id"=&gt;uuid2,
    "campaign_id"=&gt;uuid3,
    "asset_id"=&gt;uuid4,
    "brand_id"=&gt;"5",
    "region"=&gt;"Non-EU",
    "attrs"=&gt;{
      uuid5=&gt;{
        "label"=&gt;"Email",
        "value"=&gt;"example@test.com.tw"
      },
      uuid6=&gt;{
        "label"=&gt;"Last Name ",
        "value"=&gt;"Yang"
      }
    }
  }
  </code></pre>
  
  <p>I want to query The <code>User</code> active record based on </p>
  
  <p><code>"label"=&gt;"Email","value"=&gt;"example@test.com.tw"</code>.</p>
  
  <p>How can I do this?</p>