diff --git a/lib/chess/auth/user.ex b/lib/chess/auth/user.ex index 2909073..5e8f22c 100644 --- a/lib/chess/auth/user.ex +++ b/lib/chess/auth/user.ex @@ -11,7 +11,7 @@ defmodule Chess.Auth.User do field :username, :string 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() end