The query which i have been trying to formulate is
select array_agg(is_online) , config->> 'external_host' from cameras group by config->> 'external_host';
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?