osem-fcy/app/models/booth.rb

8 lines
168 B
Ruby
Raw Normal View History

2017-05-17 13:31:27 +03:00
class Booth < ActiveRecord::Base
2017-05-30 13:05:13 +03:00
belongs_to :conference
has_many :booth_requests
has_many :users, through: :booth_requests
validate :title, presence: true
2017-05-17 13:31:27 +03:00
end