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:
8
script/fixes/113_add_tag_words.rb
Executable file
8
script/fixes/113_add_tag_words.rb
Executable 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
|
||||
Reference in New Issue
Block a user