diff --git a/app/models/user_visit.rb b/app/models/user_visit.rb index 1cb87af4128..f8f7ea43b13 100644 --- a/app/models/user_visit.rb +++ b/app/models/user_visit.rb @@ -3,6 +3,6 @@ class UserVisit < ActiveRecord::Base # A list of visits in the last month by day def self.by_day(since=30.days.ago) - where("visited_at > ?", since).group(:visited_at).order(:visited_at).count + where("visited_at >= ?", since).group(:visited_at).order(:visited_at).count end end