diff --git a/lib/chess/store/game.ex b/lib/chess/store/game.ex index e136473..5317b21 100644 --- a/lib/chess/store/game.ex +++ b/lib/chess/store/game.ex @@ -10,6 +10,7 @@ defmodule Chess.Store.Game do alias Chess.Board alias Chess.Store.Game + alias Chess.Store.User alias Chess.GameState schema "games" do @@ -17,8 +18,8 @@ defmodule Chess.Store.Game do field :turn, :string, default: "white" field :state, :string - belongs_to :user, Chess.Store.User - belongs_to :opponent, Chess.Store.User, references: :id + belongs_to :user, User + belongs_to :opponent, User, references: :id timestamps() end diff --git a/test/chess/store/game_test.exs b/test/chess/store/game_test.exs index 1113c32..0f861b0 100644 --- a/test/chess/store/game_test.exs +++ b/test/chess/store/game_test.exs @@ -1,4 +1,6 @@ defmodule Chess.GameTest do + @moduledoc false + use Chess.DataCase describe "game" do