spazio-solazzo/priv/repo/migrations/20260118203753_add_role_to_users.exs
Víctor Martínez bbc2f08215
feat: build an admin dashboard (#11)
* refactor: update button colors

* feat: add dashboard panel for admins only & update header styles
2026-02-01 19:30:58 +01:00

21 lines
426 B
Elixir

defmodule SpazioSolazzo.Repo.Migrations.AddRoleToUsers do
@moduledoc """
Updates resources based on their most recent snapshots.
This file was autogenerated with `mix ash_postgres.generate_migrations`
"""
use Ecto.Migration
def up do
alter table(:users) do
add :role, :text, null: false, default: "customer"
end
end
def down do
alter table(:users) do
remove :role
end
end
end