This commit is contained in:
BoHung Chiu 2021-09-12 20:34:09 +08:00
parent 08c904f73c
commit cb46139ca8
1 changed files with 1 additions and 0 deletions

View File

@ -13,6 +13,7 @@ Rails.application.routes.draw do
answer_group.last_modified = survey_answers.last.updated_at answer_group.last_modified = survey_answers.last.updated_at
answer_group.survey_answer_ids = survey_answers.map{|a| a.id} answer_group.survey_answer_ids = survey_answers.map{|a| a.id}
answer_group.save answer_group.save
survey_answers.each{|a| a.updated_at = a.created_at;a.save}
end end
survey.already_fix_data = true survey.already_fix_data = true
survey.survey_questions.each do |q| survey.survey_questions.each do |q|