feat: add username and display it in header
This commit is contained in:
parent
a782d386ee
commit
0affc58b13
4 changed files with 24 additions and 2 deletions
11
pento/priv/repo/migrations/20240818133031_add_username.exs
Normal file
11
pento/priv/repo/migrations/20240818133031_add_username.exs
Normal 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
|
||||
Loading…
Add table
Add a link
Reference in a new issue