Browse Source

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

pull/167/head
みてるぞ 1 week ago
parent
commit
282b07bf22
1 changed files with 0 additions and 12 deletions
  1. +0
    -12
      backend/lib/tasks/link_nico.rake

+ 0
- 12
backend/lib/tasks/link_nico.rake 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

Loading…
Cancel
Save