summaryrefslogtreecommitdiff
path: root/priv/repo/migrations/20231004233032_add_trongle_chat.exs
blob: 2a3c8aeb13876c3627607ff6a3e198d559a12296 (plain)
1
2
3
4
5
6
7
8
9
10
11
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