Packages

Swiss army knife authentication framework for Elixir projects.

Current section

Files

Jump to
concierge priv templates concierge.install migration.exs
Raw

priv/templates/concierge.install/migration.exs

defmodule <%= base %>.Repo.Migrations.Create<%= scoped %> do
use Ecto.Migration
def change do
create table(:<%= plural %>) do
add :email, :string
add :encrypted_password, :string
timestamps
end
create unique_index(:<%= plural %>, [:email])
end
end