class PollQuestion < ActiveRecord::Base # attr_accessible :is_necessary, :polls_id, :question_title, :question_type include Redmine::SafeAttributes belongs_to :poll has_many :poll_answers, :dependent => :destroy has_many :poll_votes, :dependent => :destroy end