title: PostgreSQL query to Rails Console.
body: <p>The query which i have been trying to formulate is</p>
  
  <pre><code>select array_agg(is_online) , config-&gt;&gt; 'external_host' from cameras group by config-&gt;&gt; 'external_host';
  </code></pre>
  
  <p>this is running fine on PostgreSql query console, but not giving any response on Rails console not even error.
  is there any way to formulate that query in some way that it will be applicable for ActiveRecords?</p>