Ivan Reshetnikov
45c91eb3bf
I just added is_admin field to user schema, /admin scope, admin page controller and view. No extra functions were implemented.
9 lines
197 B
Elixir
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
|