Fix column name in user cohorts

This commit is contained in:
Sean McGivern 2017-04-05 10:49:33 +01:00 committed by Rémy Coutable
parent a4a8f0db68
commit 0d7645e1b0
1 changed files with 1 additions and 1 deletions

View File

@ -67,7 +67,7 @@ class UserCohortsService
@counts_by_month ||=
begin
created_at_month = column_to_date('created_at')
current_sign_in_at_month = column_to_date('current_sign_in_at_month')
current_sign_in_at_month = column_to_date('current_sign_in_at')
User
.where('created_at > ?', MONTHS_INCLUDED.months.ago.end_of_month)