This commit is contained in:
BoHung Chiu 2021-09-12 21:53:45 +08:00
parent 9eb64bb6a5
commit 88be2136aa
1 changed files with 1 additions and 0 deletions

View File

@ -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