mirror of
https://framagit.org/framasoft/mobilizon.git
synced 2024-12-28 02:40:22 +00:00
19 lines
368 B
Elixir
19 lines
368 B
Elixir
|
defmodule Mobilizon.Repo.Migrations.ActorGroupOpenness do
|
||
|
use Ecto.Migration
|
||
|
alias Mobilizon.Actors.ActorOpennessEnum
|
||
|
|
||
|
def up do
|
||
|
ActorOpennessEnum.create_type()
|
||
|
|
||
|
alter table(:actors) do
|
||
|
add(:openness, ActorOpennessEnum.type(), default: "moderated")
|
||
|
end
|
||
|
end
|
||
|
|
||
|
def down do
|
||
|
alter table(:actors) do
|
||
|
remove(:openness)
|
||
|
end
|
||
|
end
|
||
|
end
|