Set up association and models

This commit is contained in:
Rishabh Singh 2019-08-17 18:10:27 +05:30
parent a1ce39643b
commit c9ae859bcf
5 changed files with 32 additions and 1 deletions

View file

@ -52,6 +52,7 @@ class Conference < ApplicationRecord
through: :program,
source: :events
has_many :event_types, through: :program
has_many :booth_types, through: :program
has_many :surveys, as: :surveyable, dependent: :destroy do
def for_registration