parent
f96a0f747d
commit
64dcbba6ad
@ -0,0 +1,7 @@
|
||||
class ModifyAttachmentUrlForChallengeAnswer < ActiveRecord::Migration[5.2]
|
||||
def change
|
||||
ChallengeChoose.find_each do |cc|
|
||||
cc.update_column(:subject, cc.subject.gsub("(/attachments/download", "(/api/attachments")) if cc.subject.present?
|
||||
end
|
||||
end
|
||||
end
|
Loading…
Reference in new issue