2018-05-07 16:47:29 -07:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
|
2021-02-20 09:57:27 -08:00
|
|
|
# == Schema Information
|
|
|
|
|
#
|
|
|
|
|
# Table name: event_users
|
|
|
|
|
#
|
|
|
|
|
# id :bigint not null, primary key
|
|
|
|
|
# comment :string
|
|
|
|
|
# event_role :string default("participant"), not null
|
|
|
|
|
# created_at :datetime
|
|
|
|
|
# updated_at :datetime
|
|
|
|
|
# event_id :integer
|
|
|
|
|
# user_id :integer
|
|
|
|
|
#
|
2017-09-05 22:23:34 +03:00
|
|
|
class EventUser < ApplicationRecord
|
2020-07-25 17:38:44 -07:00
|
|
|
ROLES = [%w[Speaker speaker], %w[Submitter submitter], %w[Moderator moderator],
|
2021-02-24 09:47:56 -08:00
|
|
|
%w[Volunteer volunteer]]
|
2013-01-07 09:04:09 +01:00
|
|
|
|
2018-02-23 00:00:25 -08:00
|
|
|
belongs_to :event, touch: true
|
2014-06-23 19:07:50 +03:00
|
|
|
belongs_to :user
|
2014-06-24 12:14:53 +03:00
|
|
|
end
|