bump_server/priv/repo/migrations/20211204223854_add_messages.exs
raphael 4e607a7e45 adds phoenix boilerplate and database api
- message communication added
- database migration added
- initial commit
2021-12-05 00:36:13 +01:00

15 lines
312 B
Elixir

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