21 lines
418 B
Elixir
21 lines
418 B
Elixir
defmodule Mv.Repo.Migrations.AddAdminToUsers 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 :admin?, :boolean, null: false, default: false
|
|
end
|
|
end
|
|
|
|
def down do
|
|
alter table(:users) do
|
|
remove :admin?
|
|
end
|
|
end
|
|
end
|