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
neiam /gitgud
Git Gud
public · Issues · Pulls · Labels · Forks · Compare · Actions success · Packages
⭐
Log in to mark this repository.
430 B · text
History
6280797