Skip to content

Commit

Permalink
Add missing reverse relation in Comment model
Browse files Browse the repository at this point in the history
  • Loading branch information
ellmetha committed Nov 18, 2023
1 parent 7c49ba0 commit 56e9151
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/apps/blogging/models/comment.cr
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ module Blogging
class Comment < Marten::Model
field :id, :big_int, primary_key: true, auto: true
field :body, :text
field :article, :many_to_one, to: Blogging::Article
field :article, :many_to_one, to: Blogging::Article, related: :comments
field :author, :many_to_one, to: Profiles::Profile

with_timestamp_fields
Expand Down

0 comments on commit 56e9151

Please sign in to comment.