diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2020-03-17 03:09:12 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2020-03-17 03:09:12 +0300 |
commit | d43aaf286fe6b8e8383e73ea580274d8841608d7 (patch) | |
tree | ca03542a55583538a1ec13023dffed20457407b5 /app/models/zoom_meeting.rb | |
parent | 87af6f2e0590af0ed1bb3e5de1bb5d21855a94d2 (diff) |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'app/models/zoom_meeting.rb')
-rw-r--r-- | app/models/zoom_meeting.rb | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/app/models/zoom_meeting.rb b/app/models/zoom_meeting.rb index fe2f351018c..f83aa93b69a 100644 --- a/app/models/zoom_meeting.rb +++ b/app/models/zoom_meeting.rb @@ -1,6 +1,8 @@ # frozen_string_literal: true class ZoomMeeting < ApplicationRecord + include UsageStatistics + belongs_to :project, optional: false belongs_to :issue, optional: false @@ -23,10 +25,4 @@ class ZoomMeeting < ApplicationRecord def self.canonical_meeting_url(issue) canonical_meeting(issue)&.url end - - def self.distinct_count_by(column = nil, fallback = -1) - distinct.count(column) - rescue ActiveRecord::StatementInvalid - fallback - end end |