525 B · text 5af55d9
defmodule GitGud.Repo.Migrations.AddInteractionPolicy do
use Ecto.Migration
def change do
alter table(:repositories) do
# public — anyone on the network can comment / open issues
# followers — only accepted followers may interact
# approved — interactions from unknown actors land in
# InboxDelivery with status="quarantined"
add :interaction_policy, :string, null: false, default: "public"
end
create index(:repositories, [:interaction_policy])
end
end