bump_server/priv/repo/migrations/20211204223854_add_messages.exs

15 lines
312 B
Elixir
Raw Permalink Normal View History

defmodule Bump.Repo.Migrations.AddMessages do
use Ecto.Migration
def change do
create table :messages do
add :sender, :string, size: 255, null: false
add :data, :string, size: 2048
add :timestamp, :utc_datetime, null: false
timestamps([type: :utc_datetime])
end
end
end