迁移错误错误

dev_forum
daiao 5 years ago
parent 1bb0d4be58
commit f2097f2a11

@ -1,7 +0,0 @@
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…
Cancel
Save