diff --git a/db/migrate/20220914112457_add_reject_non_dco_commits_to_push_rules.rb b/db/migrate/20220914112457_add_reject_non_dco_commits_to_push_rules.rb new file mode 100644 index 0000000000000000000000000000000000000000..57b3c209660556e92548fa50d96d4323ef31545f --- /dev/null +++ b/db/migrate/20220914112457_add_reject_non_dco_commits_to_push_rules.rb @@ -0,0 +1,7 @@ +# frozen_string_literal: true + +class AddRejectNonDcoCommitsToPushRules < Gitlab::Database::Migration[2.0] + def change + add_column :push_rules, :reject_non_dco_commits, :boolean + end +end diff --git a/db/schema_migrations/20220914112457 b/db/schema_migrations/20220914112457 new file mode 100644 index 0000000000000000000000000000000000000000..ab67d0abb9902634d8812d17f3644962ade2bcc5 --- /dev/null +++ b/db/schema_migrations/20220914112457 @@ -0,0 +1 @@ +766866e84cdafce6506f18e574e1cfb760a581fa7464ce7e29c31d9778c687c0 \ No newline at end of file diff --git a/db/structure.sql b/db/structure.sql index 825cf6b9142fac7930fe038c82f267085f4023f0..f06d9d1ac22cf1d2e1076d32a3c82a5fd2efa53b 100644 --- a/db/structure.sql +++ b/db/structure.sql @@ -20506,7 +20506,8 @@ CREATE TABLE push_rules ( reject_unsigned_commits boolean, commit_committer_check boolean, regexp_uses_re2 boolean DEFAULT true, - commit_message_negative_regex character varying + commit_message_negative_regex character varying, + reject_non_dco_commits boolean ); CREATE SEQUENCE push_rules_id_seq