summaryrefslogtreecommitdiff
path: root/priv
diff options
context:
space:
mode:
Diffstat (limited to 'priv')
-rw-r--r--priv/repo/migrations/20231004233032_add_trongle_chat.exs12
1 files changed, 12 insertions, 0 deletions
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