tags: populate words column.

Add code for parsing tags into words and for populating the `words` column
in the tags table.
This commit is contained in:
evazion
2022-09-01 23:51:07 -05:00
parent e058cfba4d
commit ec382357b8
3 changed files with 88 additions and 0 deletions

View File

@@ -0,0 +1,8 @@
#!/usr/bin/env ruby
require_relative "base"
Tag.find_each do |tag|
tag.update_columns(words: Tag.parse_words(tag.name))
p tag
end