Add highlights
This commit is contained in:
15
app/relations/highlights.rb
Normal file
15
app/relations/highlights.rb
Normal file
@@ -0,0 +1,15 @@
|
||||
# frozen_string_literal: true
|
||||
|
||||
module Adamantium
|
||||
module Relations
|
||||
class Highlights < ROM::Relation[:sql]
|
||||
schema :highlights, infer: true do
|
||||
associations do
|
||||
belongs_to :post
|
||||
end
|
||||
end
|
||||
|
||||
auto_struct(true)
|
||||
end
|
||||
end
|
||||
end
|
@@ -11,8 +11,8 @@ module Adamantium
|
||||
has_many :post_trips
|
||||
has_many :trips, through: :post_trips
|
||||
|
||||
has_many :highlights
|
||||
has_many :reactions
|
||||
|
||||
has_many :webmentions
|
||||
end
|
||||
end
|
||||
|
Reference in New Issue
Block a user