foodsoft/plugins/polls/app/models/poll_vote.rb
2020-09-05 14:40:11 +02:00

6 lines
165 B
Ruby

class PollVote < ActiveRecord::Base
belongs_to :poll
belongs_to :ordergroup, optional: true
belongs_to :user
has_many :poll_choices, dependent: :destroy
end