I have the following sql query and I want to map it to a rails count query:
SELECT count(*), DATE(CONVERT_TZ(created_at, '+00:00', '-05:00')) as converted_date
FROM video_logs
where user_id = 19 and question_id = 96 and dashboard = 'player_question'
GROUP BY converted_date;
How do I do this?