|
|
|
@ -1,7 +1,8 @@
|
|
|
|
|
class ModifyTaskPassForChallenges < ActiveRecord::Migration[5.2]
|
|
|
|
|
def change
|
|
|
|
|
challenge = Challenge.find(6917)
|
|
|
|
|
task_pass = challenge.task_pass.gsub("", "").gsub("rac", '\frac')
|
|
|
|
|
challenge.update_attribute(:task_pass, task_pass)
|
|
|
|
|
Challenge.find_each do |challenge|
|
|
|
|
|
task_pass = challenge.task_pass.gsub("", "").gsub("rac", '\frac')
|
|
|
|
|
challenge.update_attribute(:task_pass, task_pass)
|
|
|
|
|
end
|
|
|
|
|
end
|
|
|
|
|
end
|
|
|
|
|