In Rails, I want to show on a page how many new "users" are created each "day".
In regular SQL, I would do something like:
SELECT
DATE(created_at) as day,
COUNT(1) as new_user_count
FROM users
WHERE created_at > '2014-01-01 01:01:01'
GROUP BY day
How can I execute this against my Users table in Rails? Again, I need to show this on a page, so I'm not looking for instructions on the PG GUI.
For specifics, I'm using Heroku and Postgres.