You might be able to do something like this for a daily count
current_user.impressions.group_by_day(:created_at).count
The methods are within the GroupDate gem https://github.com/ankane/groupdate
The gem's documentation does say that it is compatible with postgres, but I am not sure if there is any additional setup on postgres like there is with MySQL.
Their later versions should support Turbolinks and Rails 5. However, they did deprecate the Uniqueness validation as it could be seen as a security risk. You shouldn't have to specify the branch anymore.