Create 'poll_question_answers' table
This commit is contained in:
@@ -15,6 +15,7 @@ class Poll::Question < ActiveRecord::Base
|
||||
|
||||
has_many :comments, as: :commentable
|
||||
has_many :answers
|
||||
has_many :question_answers, class_name: 'Poll::QuestionAnswer', foreign_key: 'poll_question_id'
|
||||
has_many :partial_results
|
||||
belongs_to :proposal
|
||||
|
||||
|
||||
Reference in New Issue
Block a user