Skip to content

Commit

Permalink
change to many to many to support test case
Browse files Browse the repository at this point in the history
  • Loading branch information
benwilson512 committed May 16, 2024
1 parent 37cd17f commit cbb38a5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/support/post.ex
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ defmodule Dataloader.Post do
belongs_to(:user, Dataloader.User)
has_many(:likes, Dataloader.Like)
has_many(:scores, Dataloader.Score)
has_many(:liking_users, through: [:likes, :user])
many_to_many(:liking_users, Dataloader.User, join_through: Dataloader.Like)

field(:title, :string)
field(:status, :string)
Expand Down

0 comments on commit cbb38a5

Please sign in to comment.