programming-phoenix-liveview/pento/priv/repo/migrations/20240818133031_add_username...

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