2018-05-07 16:47:29 -07:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
|
2021-02-20 09:57:27 -08:00
|
|
|
# == Schema Information
|
|
|
|
|
#
|
|
|
|
|
# Table name: booth_requests
|
|
|
|
|
#
|
|
|
|
|
# id :bigint not null, primary key
|
|
|
|
|
# role :string
|
|
|
|
|
# created_at :datetime not null
|
|
|
|
|
# updated_at :datetime not null
|
|
|
|
|
# booth_id :integer
|
|
|
|
|
# user_id :integer
|
|
|
|
|
#
|
|
|
|
|
# Indexes
|
|
|
|
|
#
|
|
|
|
|
# index_booth_requests_on_booth_id (booth_id)
|
|
|
|
|
# index_booth_requests_on_user_id (user_id)
|
|
|
|
|
#
|
2017-09-05 22:23:34 +03:00
|
|
|
class BoothRequest < ApplicationRecord
|
2017-05-17 13:31:27 +03:00
|
|
|
belongs_to :booth
|
|
|
|
|
belongs_to :user
|
|
|
|
|
|
|
|
|
|
validates :role,
|
|
|
|
|
presence: true
|
|
|
|
|
|
|
|
|
|
ROLES = %w[submitter responsible].freeze
|
|
|
|
|
end
|