From 466295f26fd7fc2d6b1c802e5a39f408d46a1df6 Mon Sep 17 00:00:00 2001 From: Simponic Date: Mon, 19 Dec 2022 20:56:59 -0700 Subject: Add migrations, test keys, github workflows --- priv/repo/migrations/20221219215005_add_keys.exs | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 priv/repo/migrations/20221219215005_add_keys.exs (limited to 'priv/repo/migrations/20221219215005_add_keys.exs') diff --git a/priv/repo/migrations/20221219215005_add_keys.exs b/priv/repo/migrations/20221219215005_add_keys.exs new file mode 100644 index 0000000..15163dc --- /dev/null +++ b/priv/repo/migrations/20221219215005_add_keys.exs @@ -0,0 +1,14 @@ +defmodule Chessh.Repo.Migrations.AddKeys do + use Ecto.Migration + + def change do + create table(:keys) do + add :key, :string, null: false + add :name, :string, null: false + + add :player_id, references(:players) + + timestamps() + end + end +end -- cgit v1.2.3-70-g09d2