diff options
Diffstat (limited to 'app/models/milestone.rb')
-rw-r--r-- | app/models/milestone.rb | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/app/models/milestone.rb b/app/models/milestone.rb index 987373aaf1b..920c28aeceb 100644 --- a/app/models/milestone.rb +++ b/app/models/milestone.rb @@ -38,6 +38,9 @@ class Milestone < ApplicationRecord has_many :merge_requests has_many :events, as: :target, dependent: :delete_all # rubocop:disable Cop/ActiveRecordDependent + has_many :issue_milestones + has_many :merge_request_milestones + scope :of_projects, ->(ids) { where(project_id: ids) } scope :of_groups, ->(ids) { where(group_id: ids) } scope :active, -> { with_state(:active) } |