feat: add username and display it in header

This commit is contained in:
Moritz Böhme 2024-08-18 15:42:17 +02:00
parent a782d386ee
commit 0affc58b13
No known key found for this signature in database
GPG key ID: 970C6E89EB0547A9
4 changed files with 24 additions and 2 deletions

View file

@ -0,0 +1,11 @@
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