12 lines
219 B
Elixir
12 lines
219 B
Elixir
|
defmodule Pento.Repo.Migrations.AddUsername do
|
||
|
use Ecto.Migration
|
||
|
|
||
|
def change do
|
||
|
alter table("users") do
|
||
|
add :username, :string, null: false
|
||
|
end
|
||
|
|
||
|
create unique_index(:users, [:username])
|
||
|
end
|
||
|
end
|