Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'app/models/timelog.rb')
-rw-r--r--app/models/timelog.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/app/models/timelog.rb b/app/models/timelog.rb
index 0ae7790eef9..ffb88b7ebea 100644
--- a/app/models/timelog.rb
+++ b/app/models/timelog.rb
@@ -20,6 +20,7 @@ class Timelog < ApplicationRecord
belongs_to :project
belongs_to :user
belongs_to :note
+ belongs_to :timelog_category, optional: true, class_name: 'TimeTracking::TimelogCategory'
scope :in_group, -> (group) do
joins(:project).where(projects: { namespace: group.self_and_descendants })