Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGitLab Bot <gitlab-bot@gitlab.com>2020-03-20 09:09:38 +0300
committerGitLab Bot <gitlab-bot@gitlab.com>2020-03-20 09:09:38 +0300
commite380e59ef5d1aa03922df49626c302da5eb30699 (patch)
treef68a1c643813a3c0e44fc52c1040882ba4683f4b /db/migrate/20200304124406_add_unlock_membership_to_ldap_of_groups.rb
parentd2b53bd7227495c615c865825f01a7fd7b9df9e0 (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.rb19
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