mirror of
https://github.com/danbee/chess
synced 2025-03-04 08:39:06 +00:00
These should never be null
This commit is contained in:
parent
a66bc2655b
commit
381ad98d2b
@ -4,9 +4,9 @@ defmodule Chess.Repo.Migrations.CreateMoves do
|
|||||||
def change do
|
def change do
|
||||||
create table(:moves) do
|
create table(:moves) do
|
||||||
add :game_id, references(:games, on_delete: :delete_all)
|
add :game_id, references(:games, on_delete: :delete_all)
|
||||||
add :from, :map
|
add :from, :map, null: false
|
||||||
add :to, :map
|
add :to, :map, null: false
|
||||||
add :piece, :map
|
add :piece, :map, null: false
|
||||||
add :piece_captured, :map
|
add :piece_captured, :map
|
||||||
|
|
||||||
timestamps()
|
timestamps()
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user