From 77e93809f6ab9ad1a14c2dc9da39bba35f1922c3 Mon Sep 17 00:00:00 2001 From: Petko Bordjukov Date: Sun, 28 Apr 2019 02:17:21 +0300 Subject: [PATCH] uniq -> distinct --- app/models/conference.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/models/conference.rb b/app/models/conference.rb index 7634779..2f70f75 100644 --- a/app/models/conference.rb +++ b/app/models/conference.rb @@ -19,7 +19,7 @@ class Conference < ActiveRecord::Base has_many :volunteer_teams has_many :volunteers has_one :call_for_participation, dependent: :destroy - has_many :participants, -> { uniq }, class_name: 'User', through: :events + has_many :participants, -> { distinct }, class_name: 'User', through: :events has_many :participant_profiles, class_name: 'PersonalProfile' has_many :slots, through: :halls has_many :feedbacks, as: :feedback_receiving, dependent: :destroy