|
|
@ -15,10 +15,10 @@ class ModifyKeContentsForMarkdown < ActiveRecord::Migration[5.2]
|
|
|
|
# end
|
|
|
|
# end
|
|
|
|
|
|
|
|
|
|
|
|
#试卷的标题
|
|
|
|
#试卷的标题
|
|
|
|
ExerciseQuestion.find_each do |eq|
|
|
|
|
# ExerciseQuestion.find_each do |eq|
|
|
|
|
question_title = ke_transform_to_md eq.question_title
|
|
|
|
# question_title = ke_transform_to_md eq.question_title
|
|
|
|
eq.update_column(:question_title, question_title)
|
|
|
|
# eq.update_column(:question_title, question_title)
|
|
|
|
end
|
|
|
|
# end
|
|
|
|
|
|
|
|
|
|
|
|
# # 试卷的答案
|
|
|
|
# # 试卷的答案
|
|
|
|
# ExerciseStandardAnswer.find_each do |esa|
|
|
|
|
# ExerciseStandardAnswer.find_each do |esa|
|
|
|
@ -26,11 +26,11 @@ class ModifyKeContentsForMarkdown < ActiveRecord::Migration[5.2]
|
|
|
|
# esa.update_column(:answer_text, answer_text)
|
|
|
|
# esa.update_column(:answer_text, answer_text)
|
|
|
|
# end
|
|
|
|
# end
|
|
|
|
#
|
|
|
|
#
|
|
|
|
# # 试卷题库的问题标题
|
|
|
|
# 试卷题库的问题标题
|
|
|
|
# ExerciseBankQuestion.find_each do |ebq|
|
|
|
|
ExerciseBankQuestion.find_each do |ebq|
|
|
|
|
# question_title = ke_transform_to_md ebq.question_title
|
|
|
|
question_title = ke_transform_to_md ebq.question_title
|
|
|
|
# ebq.update_column(:question_title, question_title)
|
|
|
|
ebq.update_column(:question_title, question_title)
|
|
|
|
# end
|
|
|
|
end
|
|
|
|
#
|
|
|
|
#
|
|
|
|
# # 试卷答案
|
|
|
|
# # 试卷答案
|
|
|
|
# ExerciseBankStandardAnswer.find_each do |ebsa|
|
|
|
|
# ExerciseBankStandardAnswer.find_each do |ebsa|
|