1
0
mirror of https://github.com/danbee/chess synced 2025-03-04 08:39:06 +00:00
chess/priv/repo/migrations/20180223223018_add_turn_to_game.exs
Dan Barber c0facfa4d5
Players take turns
Restricts players to only be able to move their own pieces and only when
it's their turn.
2018-02-24 15:52:22 -05:00

10 lines
176 B
Elixir

defmodule Chess.Repo.Migrations.AddTurnToGame do
use Ecto.Migration
def change do
alter table("games") do
add :turn, :string, default: "white"
end
end
end