diff --git a/app/models/question.rb b/app/models/question.rb index aed95fb..cf3fb61 100644 --- a/app/models/question.rb +++ b/app/models/question.rb @@ -20,7 +20,7 @@ accepts_nested_attributes_for :suggested_answers, :allow_destroy => true accepts_nested_attributes_for :themes - attr_accessible :default_value, :dependency_id, :dependency_text, :guidance,:number, :parent_id, :suggested_answer, :text, :section_id,:question_format_id,:options_attributes, :suggested_answers_attributes, :option_comment_display, :theme_ids, :as => [:default, :admin] + attr_accessible :default_value, :dependency_id, :dependency_text, :guidance,:number, :suggested_answer, :text, :section_id,:question_format_id,:options_attributes, :suggested_answers_attributes, :option_comment_display, :theme_ids, :as => [:default, :admin] ## # returns the text from the question diff --git a/db/migrate/20161115121831_remove_parent_id_from_questions.rb b/db/migrate/20161115121831_remove_parent_id_from_questions.rb new file mode 100644 index 0000000..47545b6 --- /dev/null +++ b/db/migrate/20161115121831_remove_parent_id_from_questions.rb @@ -0,0 +1,5 @@ +class RemoveParentIdFromQuestions < ActiveRecord::Migration + def change + remove_column :questions, :parent_id, :integer + end +end