Commit 62f75747 authored by Heinrich Lee Yu's avatar Heinrich Lee Yu

Merge branch 'remove-deprecation-warning-container-repository' into 'master'

Fix deprecation warning in ContainerRepository

See merge request gitlab-org/gitlab!48384
parents 6ff76f6a 2883b290
......@@ -25,8 +25,7 @@ class ContainerRepository < ApplicationRecord
.with_container_registry
.select(:id)
ContainerRepository
.joins("INNER JOIN (#{project_scope.to_sql}) projects on projects.id=container_repositories.project_id")
joins("INNER JOIN (#{project_scope.to_sql}) projects on projects.id=container_repositories.project_id")
end
scope :for_project_id, ->(project_id) { where(project_id: project_id) }
scope :search_by_name, ->(query) { fuzzy_search(query, [:name], use_minimum_char_limit: false) }
......
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