Replace deprecated uniq on a Relation with distinct
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?
-
Changelog entry added, if necessary -
Documentation created/updated -
Tests added for this feature/bug -
Conforms to the code review guidelines -
Conforms to the merge request performance guidelines -
Conforms to the style guides -
Conforms to the database guides -
Link to e2e tests MR added if this MR has Requires e2e tests label. See the Test Planning Process.