|
|
|
@ -14,9 +14,11 @@ 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
|
|
|
|
|
|
|
|
|
|
# 试卷的标题
|
|
|
|
@ -33,6 +35,12 @@ class ModifyKeContentsForMarkdown < ActiveRecord::Migration[5.2]
|
|
|
|
|
esa.update_column(:answer_text, answer_text)
|
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
# 试卷题库
|
|
|
|
|
ExerciseBankQuestion.find_each do |ebq|
|
|
|
|
|
question_title = ke_transform_to_md ebq.question_title
|
|
|
|
|
puts("#question_title: #{question_title}")
|
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# 问卷的标题
|
|
|
|
|
PollQuestion.find_each do |pq|
|
|
|
|
@ -43,20 +51,20 @@ class ModifyKeContentsForMarkdown < ActiveRecord::Migration[5.2]
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#
|
|
|
|
|
# StudentWork
|
|
|
|
|
# HomeworkCommon
|
|
|
|
|
# JournalsForMessage
|
|
|
|
|
# GraduationTask
|
|
|
|
|
# GraduationTopic
|
|
|
|
|
# GraduationWork
|
|
|
|
|
# GtaskBank
|
|
|
|
|
# GtopicBank
|
|
|
|
|
# HomeworkBank
|
|
|
|
|
# QuestionBank
|
|
|
|
|
# ExerciseBankQuestion
|
|
|
|
|
# ExerciseBankStandardAnswer
|
|
|
|
|
# Memo
|
|
|
|
|
|
|
|
|
|
StudentWork
|
|
|
|
|
HomeworkCommon
|
|
|
|
|
JournalsForMessage
|
|
|
|
|
GraduationTask
|
|
|
|
|
GraduationTopic
|
|
|
|
|
GraduationWork
|
|
|
|
|
GtaskBank
|
|
|
|
|
GtopicBank
|
|
|
|
|
HomeworkBank
|
|
|
|
|
QuestionBank
|
|
|
|
|
|
|
|
|
|
ExerciseBankStandardAnswer
|
|
|
|
|
Memo
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|