From 88be2136aa1fa381a8d1e113643382fb9e0a2d65 Mon Sep 17 00:00:00 2001 From: Bohung Date: Sun, 12 Sep 2021 21:53:45 +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 39201ba..63b29d6 100644 --- a/config/routes.rb +++ b/config/routes.rb @@ -36,6 +36,7 @@ Rails.application.routes.draw do q.survey_question_options.where("name.en.en"=>//).destroy end survey.save + survey.survey_answers.each_with_index{|a,i| a.updated_at = a.created_at;a.save} end end scope "(:locale)", locale: Regexp.new(locales.join("|")) do