430 B · text History 6280797
defmodule GitGud.Repo.Migrations.AddBlockSelfApproval do
use Ecto.Migration
# Whether the person who opened a PR may approve it.
#
# Off by default, like the other two review rules — existing repos
# keep behaving as they do rather than having a rule imposed by a
# migration.
def change do
alter table(:repositories) do
add :block_self_approval, :boolean, null: false, default: false
end
end
end