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