14 lines
266 B
Elixir
14 lines
266 B
Elixir
defmodule Auth.Repo.Migrations.CreateUsers do
|
|
use Ecto.Migration
|
|
|
|
def change do
|
|
create table(:users) do
|
|
add :email, :string, null: false
|
|
add :password_hash, :string
|
|
|
|
timestamps()
|
|
end
|
|
|
|
create unique_index(:users, [:email])
|
|
end
|
|
end
|