迁移问题

dev_hjm
daiao 6 years ago
parent dc484e2da6
commit 739f59b004

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

Loading…
Cancel
Save