Commit 08c95ed3 authored by Matthias Käppler's avatar Matthias Käppler

Merge branch '337432-remove-of_milestones-scope' into 'master'

Remove unused of_milestones scope

See merge request gitlab-org/gitlab!73926
parents 99ec3469 29ddbdad
......@@ -14,7 +14,6 @@ module Milestoneable
validate :milestone_is_valid
scope :of_milestones, ->(ids) { where(milestone_id: ids) }
scope :any_milestone, -> { where.not(milestone_id: nil) }
scope :with_milestone, ->(title) { left_joins_milestones.where(milestones: { title: title }) }
scope :without_particular_milestone, ->(title) { left_outer_joins(:milestone).where("milestones.title != ? OR milestone_id IS NULL", title) }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment