diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2020-03-20 09:09:38 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2020-03-20 09:09:38 +0300 |
commit | e380e59ef5d1aa03922df49626c302da5eb30699 (patch) | |
tree | f68a1c643813a3c0e44fc52c1040882ba4683f4b /db/migrate/20200304124406_add_unlock_membership_to_ldap_of_groups.rb | |
parent | d2b53bd7227495c615c865825f01a7fd7b9df9e0 (diff) |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'db/migrate/20200304124406_add_unlock_membership_to_ldap_of_groups.rb')
-rw-r--r-- | db/migrate/20200304124406_add_unlock_membership_to_ldap_of_groups.rb | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/db/migrate/20200304124406_add_unlock_membership_to_ldap_of_groups.rb b/db/migrate/20200304124406_add_unlock_membership_to_ldap_of_groups.rb new file mode 100644 index 00000000000..2aa58c92c3e --- /dev/null +++ b/db/migrate/20200304124406_add_unlock_membership_to_ldap_of_groups.rb @@ -0,0 +1,19 @@ +# frozen_string_literal: true + +class AddUnlockMembershipToLdapOfGroups < ActiveRecord::Migration[5.2] + include Gitlab::Database::MigrationHelpers + + DOWNTIME = false + + def up + with_lock_retries do + add_column(:namespaces, :unlock_membership_to_ldap, :boolean) + end + end + + def down + with_lock_retries do + remove_column :namespaces, :unlock_membership_to_ldap + end + end +end |