diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2020-03-12 12:09:17 +0000 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2020-03-12 12:09:17 +0000 |
commit | cd52759ee33051b8ad7b88b02ba7954e4fad7018 (patch) | |
tree | f1096c68e457aef7f5201acd16e4a751ff538026 /db/migrate/20200207062728_add_default_branch_protection_to_namespaces.rb | |
parent | 18f7828977b74bf6e5153594a098ef90e773b3b7 (diff) | |
download | gitlab-ce-cd52759ee33051b8ad7b88b02ba7954e4fad7018.tar.gz |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'db/migrate/20200207062728_add_default_branch_protection_to_namespaces.rb')
-rw-r--r-- | db/migrate/20200207062728_add_default_branch_protection_to_namespaces.rb | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/db/migrate/20200207062728_add_default_branch_protection_to_namespaces.rb b/db/migrate/20200207062728_add_default_branch_protection_to_namespaces.rb index c21cac307f9..6eb650e6b6a 100644 --- a/db/migrate/20200207062728_add_default_branch_protection_to_namespaces.rb +++ b/db/migrate/20200207062728_add_default_branch_protection_to_namespaces.rb @@ -5,9 +5,15 @@ class AddDefaultBranchProtectionToNamespaces < ActiveRecord::Migration[6.0] DOWNTIME = false - def change + def up with_lock_retries do add_column :namespaces, :default_branch_protection, :integer, limit: 2 end end + + def down + with_lock_retries do + remove_column :namespaces, :default_branch_protection + end + end end |