uniq -> distinct
This commit is contained in:
parent
69f4c4dc26
commit
77e93809f6
|
@ -19,7 +19,7 @@ class Conference < ActiveRecord::Base
|
||||||
has_many :volunteer_teams
|
has_many :volunteer_teams
|
||||||
has_many :volunteers
|
has_many :volunteers
|
||||||
has_one :call_for_participation, dependent: :destroy
|
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 :participant_profiles, class_name: 'PersonalProfile'
|
||||||
has_many :slots, through: :halls
|
has_many :slots, through: :halls
|
||||||
has_many :feedbacks, as: :feedback_receiving, dependent: :destroy
|
has_many :feedbacks, as: :feedback_receiving, dependent: :destroy
|
||||||
|
|
Loading…
Reference in New Issue