迁移公式

yslnewtiku
daiao 5 years ago
parent 6cc67dbdf9
commit ac3d87cf93

@ -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…
Cancel
Save