This website works better with JavaScript.
Home
Explore
Sign In
miteruzo
/
btrc-hub
Watch
1
Star
0
Fork
0
Code
Issues
88
Pull Requests
2
Releases
0
Wiki
Activity
Labels
Milestones
New Pull Request
#167
ニコタグ一括連携の削除(#166)
Merged
みてるぞ
merged 1 commits from
feature/166
into
main
1 week ago
Conversation
0
Commits
1
Files Changed
1
1 changed files
with
0 additions
and
12 deletions
Whitespace
Show all changes
Ignore whitespace when comparing lines
Ignore changes in amount of whitespace
Ignore changes in whitespace at EOL
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+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
Write
Preview
Loading…
Cancel
Save