Add unlock_membership_to_ldap boolean to Groups
What does this MR do?
This MR adds a boolean attribute to groups (namespaces table) to check if owners are allowed to add members outside the LDAP group setup !26520 (merged)
Migration
ALTER TABLE namespaces ADD COLUMN unlock_membership_to_ldap BOOLEAN
Duration: 17.000 ms
Output of rollback and migration
$ rails db:migrate:redo VERSION=20200304124406
== 20200304124406 AddUnlockMembershipToLdapOfGroups: reverting ================
-- remove_column(:namespaces, :unlock_membership_to_ldap)
-> 0.0009s
== 20200304124406 AddUnlockMembershipToLdapOfGroups: reverted (0.0057s) =======
== 20200304124406 AddUnlockMembershipToLdapOfGroups: migrating ================
-- add_column(:namespaces, :unlock_membership_to_ldap, :boolean)
-> 0.0005s
== 20200304124406 AddUnlockMembershipToLdapOfGroups: migrated (0.0014s) =======
As it is without default values, it should be safe and downtime shouldn't be required
Conformity
Related to #1793 and !26520 (merged)
Edited by Sebastián Arcila Valenzuela