andela/eventx

View on GitHub
app/models/event_staff.rb

Summary

Maintainability
A
0 mins
Test Coverage
class EventStaff < ActiveRecord::Base
  enum role: [:event_staff, :gate_keeper, :event_manager, :super_admin]
  validates :role, presence: true
  validates :user, presence: true

  belongs_to :user
  belongs_to :event
end