Current section

Files

Jump to
webauthn_components templates migrations users.exs
Raw

templates/migrations/users.exs

defmodule <%= inspect @app_pascal_case %>.Repo.Migrations.CreateUsers do
use Ecto.Migration
def change do
create table(:users, primary_key: false) do
add :id, :binary_id, primary_key: true
add :email, :string, null: false
timestamps()
end
create unique_index(:users, [:email])
end
end