Add reactions to posts

This commit is contained in:
2024-03-31 09:03:40 +11:00
parent 185d363fbe
commit 03ba5ae54a
12 changed files with 85 additions and 4 deletions

View File

@@ -11,6 +11,8 @@ module Adamantium
has_many :post_trips
has_many :trips, through: :post_trips
has_many :reactions
has_many :webmentions
end
end

View File

@@ -0,0 +1,15 @@
# frozen_string_literal: true
module Adamantium
module Relations
class Reactions < ROM::Relation[:sql]
schema :reactions, infer: true do
associations do
belongs_to :post
end
end
auto_struct(true)
end
end
end