Commit fe5062f2 authored by Vitali Tatarintev's avatar Vitali Tatarintev

Merge branch '337432-unused-activerecord-scope-with_project_and_namespace' into 'master'

Remove unused ActiveRecord Scope with_project_and_namespace

See merge request gitlab-org/gitlab!70213
parents ab79e34a 2273f33c
......@@ -33,7 +33,6 @@ class Release < ApplicationRecord
includes(:author, :evidences, :milestones, :links, :sorted_links,
project: [:project_feature, :route, { namespace: :route }])
}
scope :with_project_and_namespace, -> { includes(project: :namespace) }
scope :recent, -> { sorted.limit(MAX_NUMBER_TO_DISPLAY) }
scope :without_evidence, -> { left_joins(:evidences).where(::Releases::Evidence.arel_table[:id].eq(nil)) }
scope :released_within_2hrs, -> { where(released_at: Time.zone.now - 1.hour..Time.zone.now + 1.hour) }
......
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