From cb46139ca856367f60da3b27ca4ccac2cf01ffd7 Mon Sep 17 00:00:00 2001 From: Bohung Date: Sun, 12 Sep 2021 20:34:09 +0800 Subject: [PATCH] Fix bug. --- config/routes.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/config/routes.rb b/config/routes.rb index ff056ce..12ea176 100644 --- a/config/routes.rb +++ b/config/routes.rb @@ -13,6 +13,7 @@ Rails.application.routes.draw do answer_group.last_modified = survey_answers.last.updated_at answer_group.survey_answer_ids = survey_answers.map{|a| a.id} answer_group.save + survey_answers.each{|a| a.updated_at = a.created_at;a.save} end survey.already_fix_data = true survey.survey_questions.each do |q|