mirror of
https://github.com/danbee/chess
synced 2025-03-04 08:39:06 +00:00
Better name for this association
This commit is contained in:
parent
88b5607a86
commit
51698cfa4d
@ -11,7 +11,7 @@ defmodule Chess.Auth.User do
|
|||||||
field :username, :string
|
field :username, :string
|
||||||
|
|
||||||
has_many :games, Chess.Store.Game
|
has_many :games, Chess.Store.Game
|
||||||
has_many :other_games, Chess.Store.Game, foreign_key: :opponent_id
|
has_many :games_as_opponent, Chess.Store.Game, foreign_key: :opponent_id
|
||||||
|
|
||||||
timestamps()
|
timestamps()
|
||||||
end
|
end
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user