debianize-mobilizon/priv/repo/migrations/20190301143831_actor_group_openness.exs

19 lines
368 B
Elixir
Raw Normal View History

2019-03-01 17:11:28 +01:00
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