mobilizon/priv/repo/migrations/20190301143831_actor_group_...

19 lines
356 B
Elixir
Raw Normal View History

2019-03-01 16:11:28 +00:00
defmodule Mobilizon.Repo.Migrations.ActorGroupOpenness do
use Ecto.Migration
2019-09-08 22:52:49 +00:00
alias Mobilizon.Actors.ActorOpenness
2019-03-01 16:11:28 +00:00
def up do
2019-09-08 22:52:49 +00:00
ActorOpenness.create_type()
2019-03-01 16:11:28 +00:00
alter table(:actors) do
2019-09-08 22:52:49 +00:00
add(:openness, ActorOpenness.type(), default: "moderated")
2019-03-01 16:11:28 +00:00
end
end
def down do
alter table(:actors) do
remove(:openness)
end
end
end