Set up association and models
This commit is contained in:
parent
a1ce39643b
commit
c9ae859bcf
5 changed files with 32 additions and 1 deletions
|
|
@ -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
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue