foodsoft/plugins/polls/app/models/poll_vote.rb

7 lines
165 B
Ruby
Raw Permalink Normal View History

2017-11-05 22:16:32 +01:00
class PollVote < ActiveRecord::Base
belongs_to :poll
belongs_to :ordergroup, optional: true
2017-11-05 22:16:32 +01:00
belongs_to :user
has_many :poll_choices, dependent: :destroy
end