Tag
Hash :
c38aaee2
Author :
Thomas de Grivel
Date :
2021-11-18T15:25:01
defmodule Kmxgit.Repo.Migrations.CreateUsers do
use Ecto.Migration
def change do
create table(:users) do
add :description, :string
add :email, :string
add :encrypted_password, :string
add :is_admin, :boolean, null: false, default: false
add :name, :string
add :ssh_keys, :text
timestamps()
end
create index(:users, ["(lower(email))"], unique: true)
end
end