Initial commit

Signed-off-by: Alek Ratzloff <alekratz@gmail.com>
This commit is contained in:
2019-10-09 08:59:53 -04:00
commit fe85447557
62 changed files with 7907 additions and 0 deletions

View File

@@ -0,0 +1,14 @@
defmodule Anonbb.Repo.Migrations.CreateMessages do
use Ecto.Migration
def change do
create table(:messages) do
add :text, :string
add :room_id, references(:rooms, on_delete: :nothing)
timestamps()
end
create index(:messages, [:room_id])
end
end