master
class Vote < ApplicationRecord belongs_to :votable, :polymorphic => true belongs_to :participant, optional: true end