Add highlights

This commit is contained in:
2024-04-05 21:35:39 +11:00
parent d02b74621a
commit 38d5108979
22 changed files with 188 additions and 25 deletions

View 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

View File

@@ -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