From 882e2c321ff88acac9894b488f1de109758f8f7d Mon Sep 17 00:00:00 2001 From: Elizabeth Hunt Date: Wed, 4 Oct 2023 18:56:35 -0600 Subject: initial prompt --- priv/repo/migrations/20231004233032_add_trongle_chat.exs | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 priv/repo/migrations/20231004233032_add_trongle_chat.exs (limited to 'priv/repo/migrations') diff --git a/priv/repo/migrations/20231004233032_add_trongle_chat.exs b/priv/repo/migrations/20231004233032_add_trongle_chat.exs new file mode 100644 index 0000000..2a3c8ae --- /dev/null +++ b/priv/repo/migrations/20231004233032_add_trongle_chat.exs @@ -0,0 +1,12 @@ +defmodule Chessh.Repo.Migrations.AddTrongleChat do + use Ecto.Migration + + def change do + create table(:chats) do + add(:message, :string, null: false) + add(:chatter_id, references(:players), null: false) + + timestamps() + end + end +end -- cgit v1.2.3-70-g09d2