From c7d47ce6df2482fffbff4e5c87e8e1cc7bbaae54 Mon Sep 17 00:00:00 2001 From: Chrisbr Date: Thu, 14 Aug 2014 10:46:02 +0200 Subject: [PATCH] Introduces participants relation to conference #416 --- app/models/conference.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/app/models/conference.rb b/app/models/conference.rb index 01a8d8b4..23572132 100644 --- a/app/models/conference.rb +++ b/app/models/conference.rb @@ -41,6 +41,7 @@ class Conference < ActiveRecord::Base has_many :difficulty_levels, dependent: :destroy has_many :rooms, dependent: :destroy has_many :registrations, dependent: :destroy + has_many :participants, through: :registrations, source: :user has_many :vdays, dependent: :destroy has_many :vpositions, dependent: :destroy has_many :sponsorship_levels, dependent: :destroy