1
0
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:
Daniel Barber 2018-02-23 10:39:00 -05:00
parent 88b5607a86
commit 51698cfa4d
Signed by: danbarber
GPG Key ID: 931D8112E0103DD8

View File

@ -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