mobilizon.chapril.org-mobil.../priv/repo/migrations/20190301143831_actor_group_openness.exs
2019-09-09 00:52:49 +02:00

19 lines
356 B
Elixir

defmodule Mobilizon.Repo.Migrations.ActorGroupOpenness do
use Ecto.Migration
alias Mobilizon.Actors.ActorOpenness
def up do
ActorOpenness.create_type()
alter table(:actors) do
add(:openness, ActorOpenness.type(), default: "moderated")
end
end
def down do
alter table(:actors) do
remove(:openness)
end
end
end