add relationships for booths
This commit is contained in:
parent
da6b5b8141
commit
3d9ac5a85f
8 changed files with 50 additions and 2 deletions
|
|
@ -1,2 +1,7 @@
|
|||
class Booth < ActiveRecord::Base
|
||||
belongs_to :conference
|
||||
has_many :booth_requests
|
||||
has_many :users, through: :booth_requests
|
||||
|
||||
validate :title, presence: true
|
||||
end
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue