Add polls plugin
This commit is contained in:
parent
42e0ce86a8
commit
d476993321
29 changed files with 787 additions and 0 deletions
6
plugins/polls/app/models/poll_vote.rb
Normal file
6
plugins/polls/app/models/poll_vote.rb
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
class PollVote < ActiveRecord::Base
|
||||
belongs_to :poll
|
||||
belongs_to :ordergroup
|
||||
belongs_to :user
|
||||
has_many :poll_choices, dependent: :destroy
|
||||
end
|
||||
Loading…
Add table
Add a link
Reference in a new issue