skill-assessment-app/app/models/reviewer_vote.rb
2016-11-17 22:43:19 -06:00

19 lines
287 B
Ruby

# frozen_string_literal: true
class ReviewerVote < ApplicationRecord
# validates :user_id, uniqueness: {scope: :friend_id}
belongs_to :candidate
belongs_to :user
enum vote: {
undecided: 0,
yea: 1,
nay: 2
}
enum veto: {
approved: 1,
rejected: 2
}
end