summaryrefslogtreecommitdiff
path: root/priv/repo/migrations
diff options
context:
space:
mode:
authorElizabeth Hunt <elizabeth.hunt@simponic.xyz>2023-10-04 18:56:35 -0600
committerElizabeth Hunt <elizabeth.hunt@simponic.xyz>2023-10-04 18:56:35 -0600
commit882e2c321ff88acac9894b488f1de109758f8f7d (patch)
treebc779ed8a9b23dc54cf1edd4a40e3396d8781c45 /priv/repo/migrations
parent48dd80dbf745bd0bb0bd0186ad126d74f66b872b (diff)
downloadchessh-882e2c321ff88acac9894b488f1de109758f8f7d.tar.gz
chessh-882e2c321ff88acac9894b488f1de109758f8f7d.zip
initial prompt
Diffstat (limited to 'priv/repo/migrations')
-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