|
|
|
@ -14,13 +14,6 @@ class ModifyKeContentsForMarkdown < ActiveRecord::Migration[5.2]
|
|
|
|
|
# m.update_column(:content, content)
|
|
|
|
|
# end
|
|
|
|
|
#
|
|
|
|
|
# # 试卷的描述
|
|
|
|
|
# Exercise.find_each do |e|
|
|
|
|
|
# exercise_description = ke_transform_to_md e.exercise_description
|
|
|
|
|
# puts("#exercise_description: #{exercise_description}")
|
|
|
|
|
# e.update_column(:exercise_description, exercise_description)
|
|
|
|
|
# end
|
|
|
|
|
#
|
|
|
|
|
# # 试卷的标题
|
|
|
|
|
# ExerciseQuestion.find_each do |eq|
|
|
|
|
|
# question_title = ke_transform_to_md eq.question_title
|
|
|
|
|