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

@ -5,7 +5,7 @@ class BoothsController < ApplicationController
skip_authorize_resource only: [:withdraw, :confirm, :restart]
def index
@booths = current_user.booths.where(conference_id: @conference.id).uniq
@booths = current_user.booths.where(conference_id: @conference.id).distinct
end
def show; end