add relationships for booths

This commit is contained in:
nasia 2017-05-30 13:05:13 +03:00
parent da6b5b8141
commit 3d9ac5a85f
8 changed files with 50 additions and 2 deletions

View file

@ -22,6 +22,7 @@ class Conference < ActiveRecord::Base
has_many :supporters, through: :ticket_purchases, source: :user
has_many :tickets, dependent: :destroy
has_many :resources, dependent: :destroy
has_many :booths, dependent: :destroy
has_many :lodgings, dependent: :destroy
has_many :registrations, dependent: :destroy