ニコタグ一括連携の削除(#166) (#167)

'backend/lib/tasks/link_nico.rake' を削除

Reviewed-on: #167
This commit was merged in pull request #167.
This commit is contained in:
2025-12-07 12:28:43 +09:00
parent 8a126e2e92
commit 06cd569fc5
-12
View File
@@ -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