Skip to content

Replace deprecated uniq on a Relation with distinct

Jasper Maes requested to merge jlemaes/gitlab-ce:rails5-deprecated-uniq into master

What does this MR do?

Replace deprecated uniq with distinct on Relation which is deprecated in Rails 5: https://github.com/rails/rails/commit/adfab2dcf4003ca564d78d4425566dd2d9cd8b4f. It can already be replaced in Rails 4.2 too because uniq is an alias of distinct.

What are the relevant issue numbers?

Does this MR meet the acceptance criteria?

Merge request reports