osem-fcy/app/models/event_user.rb

22 lines
533 B
Ruby
Raw Normal View History

# 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
#
class EventUser < ApplicationRecord
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
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