From f2097f2a11721a2d24a2e7ee3a314850b70947d0 Mon Sep 17 00:00:00 2001 From: daiao <358551898@qq.com> Date: Thu, 25 Jul 2019 11:07:00 +0800 Subject: [PATCH] =?UTF-8?q?=E8=BF=81=E7=A7=BB=E9=94=99=E8=AF=AF=E9=94=99?= =?UTF-8?q?=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ...725024516_modify_attachment_url_for_challenge_answer.rb | 7 ------- 1 file changed, 7 deletions(-) delete mode 100644 db/migrate/20190725024516_modify_attachment_url_for_challenge_answer.rb diff --git a/db/migrate/20190725024516_modify_attachment_url_for_challenge_answer.rb b/db/migrate/20190725024516_modify_attachment_url_for_challenge_answer.rb deleted file mode 100644 index 41840bac1..000000000 --- a/db/migrate/20190725024516_modify_attachment_url_for_challenge_answer.rb +++ /dev/null @@ -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