Create 'poll_question_answers' table

This commit is contained in:
Angel Perez
2017-10-03 23:04:50 -04:00
parent d9d03079e1
commit 1d1b861ddf
4 changed files with 25 additions and 1 deletions

View File

@@ -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