Commit 52d32a96 authored by Rémy Coutable's avatar Rémy Coutable

Merge branch 'deprecated-uniq' into 'master'

Fix deprecation: uniq is deprecated and will be removed from Rails 5.1

See merge request gitlab-org/gitlab-ee!9348
parents f9354068 d7324f97
......@@ -124,7 +124,7 @@ class Gitlab::Seeder::Vulnerabilities
end
Gitlab::Seeder.quiet do
Project.joins(:ci_pipelines).uniq.all.sample(5).each do |project|
Project.joins(:ci_pipelines).distinct.all.sample(5).each do |project|
seeder = Gitlab::Seeder::Vulnerabilities.new(project)
seeder.seed!
end
......
---
title: 'Fix deprecation: uniq is deprecated and will be removed from Rails 5.1'
merge_request: 9348
author: Jasper Maes
type: other
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