Add auto tagger for posts
This commit is contained in:
12
db/migrate/20230506081449_create_auto_taggings.rb
Normal file
12
db/migrate/20230506081449_create_auto_taggings.rb
Normal file
@@ -0,0 +1,12 @@
|
||||
# frozen_string_literal: true
|
||||
|
||||
ROM::SQL.migration do
|
||||
change do
|
||||
create_table(:auto_taggings) do
|
||||
primary_key :id
|
||||
column :title_contains, :text
|
||||
column :body_contains, :text
|
||||
foreign_key :tag_id, :tags, null: false
|
||||
end
|
||||
end
|
||||
end
|
Reference in New Issue
Block a user