diff --git a/app/models/question.rb b/app/models/question.rb index 878c09a..fd1b8b3 100644 --- a/app/models/question.rb +++ b/app/models/question.rb @@ -33,7 +33,7 @@ # Associations has_many :answers, :dependent => :destroy has_many :question_options, :dependent => :destroy, :inverse_of => :question # inverse_of needed for nester forms - has_many :annotations, :dependent => :destroy + has_many :annotations, :dependent => :destroy, :inverse_of => :question has_and_belongs_to_many :themes, join_table: "questions_themes" belongs_to :section belongs_to :question_format