change uniq to distinct for SQL queries to fix deprecation

This commit is contained in:
sspsk 2017-12-16 15:39:43 +02:00
parent 2180e6197c
commit ba9d19c832
9 changed files with 9 additions and 9 deletions

View file

@ -14,7 +14,7 @@ module Admin
def show
if can_manage_volunteers?(@conference)
@volunteers = if @conference.use_vpositions
@conference.registrations.joins(:vchoices).uniq
@conference.registrations.joins(:vchoices).distinct
else
@conference.registrations.where(volunteer: true)
end