Merge branch 'dev_aliyun' of http://bdgit.educoder.net/Hjqreturn/educoder into dev_aliyun
commit
042c6e02de
@ -0,0 +1,8 @@
|
|||||||
|
class ModifyTaskPass2ForChallenges < ActiveRecord::Migration[5.2]
|
||||||
|
def change
|
||||||
|
challenges = Challenge.where("task_pass like '%frac%'")
|
||||||
|
challenges.find_each do |c|
|
||||||
|
c.update_column(:task_pass, c.task_pass.gsub('\f\frac', '\frac'))
|
||||||
|
end
|
||||||
|
end
|
||||||
|
end
|
Loading…
Reference in new issue