comfycamp/priv/repo/migrations/20240728162610_add_is_admin_field.exs
Ivan Reshetnikov 45c91eb3bf
feat: admin panel
I just added is_admin field to user schema, /admin scope,
admin page controller and view.

No extra functions were implemented.
2024-07-28 21:52:12 +05:00

9 lines
197 B
Elixir

defmodule Comfycamp.Repo.Migrations.AddIsAdminField do
use Ecto.Migration
def change do
alter table(:users) do
add :is_admin, :boolean, null: false, default: false
end
end
end