9 lines
325 B
Ruby
9 lines
325 B
Ruby
class PollQuestion < ActiveRecord::Base
|
|
# attr_accessible :is_necessary, :polls_id, :question_title, :question_type
|
|
include Redmine::SafeAttributes
|
|
|
|
belongs_to :poll
|
|
has_many :poll_answers, :order => "#{PollAnswer.table_name}.answer_position",:dependent => :destroy
|
|
has_many :poll_votes, :dependent => :destroy
|
|
end
|