From 06cd569fc58cebda10b2649f942e53b85cbe055d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E3=81=BF=E3=81=A6=E3=82=8B=E3=81=9E?= Date: Sun, 7 Dec 2025 12:28:43 +0900 Subject: [PATCH] =?UTF-8?q?=E3=83=8B=E3=82=B3=E3=82=BF=E3=82=B0=E4=B8=80?= =?UTF-8?q?=E6=8B=AC=E9=80=A3=E6=90=BA=E3=81=AE=E5=89=8A=E9=99=A4=EF=BC=88?= =?UTF-8?q?#166=EF=BC=89=20(#167)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 'backend/lib/tasks/link_nico.rake' を削除 Reviewed-on: https://git.miteruzo.com/miteruzo/btrc-hub/pulls/167 --- backend/lib/tasks/link_nico.rake | 12 ------------ 1 file changed, 12 deletions(-) delete mode 100644 backend/lib/tasks/link_nico.rake diff --git a/backend/lib/tasks/link_nico.rake b/backend/lib/tasks/link_nico.rake deleted file mode 100644 index 0c02f48..0000000 --- a/backend/lib/tasks/link_nico.rake +++ /dev/null @@ -1,12 +0,0 @@ -namespace :nico do - desc 'ニコタグ連携' - task link: :environment do - Post.find_each do |post| - tags = post.tags.where(category: 'nico') - tags.each do |tag| - post.tags.concat(tag.linked_tags) if tag.linked_tags.present? - end - post.tags = post.tags.to_a.uniq - end - end -end