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

@ -7,6 +7,7 @@ class Booth < ApplicationRecord
attr_accessor :invite_responsible
belongs_to :conference
belongs_to :booth_type
has_many :booth_requests, dependent: :destroy
has_many :users, through: :booth_requests