osem-fcy/app/models/booth_request.rb

13 lines
261 B
Ruby
Raw Normal View History

2017-05-17 13:31:27 +03:00
class BoothRequest < ActiveRecord::Base
belongs_to :booth
belongs_to :user
validates :booth,
:user,
:role,
presence: true
2017-06-18 23:33:54 +03:00
ROLES = [%w[Submitter submitter], %w[Responsible responsible], %w[Secondary secondary]]
2017-05-17 13:31:27 +03:00
end