Add auto tagger for posts
This commit is contained in:
17
lib/adamantium/persistence/relations/auto_taggings.rb
Normal file
17
lib/adamantium/persistence/relations/auto_taggings.rb
Normal file
@@ -0,0 +1,17 @@
|
||||
# frozen_string_literal: true
|
||||
|
||||
module Adamantium
|
||||
module Persistence
|
||||
module Relations
|
||||
class AutoTaggings < ROM::Relation[:sql]
|
||||
schema :auto_taggings, infer: true do
|
||||
associations do
|
||||
belongs_to :tag
|
||||
end
|
||||
end
|
||||
|
||||
auto_struct(true)
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
Reference in New Issue
Block a user