16 lines
338 B
Elixir
16 lines
338 B
Elixir
|
defmodule Eventos.Repo.Migrations.CreateCoherenceInvitable do
|
||
|
use Ecto.Migration
|
||
|
def change do
|
||
|
create table(:invitations) do
|
||
|
|
||
|
add :name, :string
|
||
|
add :email, :string
|
||
|
add :token, :string
|
||
|
timestamps()
|
||
|
end
|
||
|
create unique_index(:invitations, [:email])
|
||
|
create index(:invitations, [:token])
|
||
|
|
||
|
end
|
||
|
end
|