debianize-mobilizon/priv/repo/migrations/20171207180738_create_coherence_invitable.exs

16 lines
338 B
Elixir
Raw Normal View History

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