diff options
author | Fabio Papa <fabtheman@gmail.com> | 2019-06-30 14:40:23 -0700 |
---|---|---|
committer | Fabio Papa <fabtheman@gmail.com> | 2019-07-19 11:55:48 -0700 |
commit | 81662f7b9fae45689b9291427fd9b192ef88be4b (patch) | |
tree | 161b452c8e6caa6d800f0779151bed7176208810 /db | |
parent | e962ffbc90b797cc9f1eb922e918c093dac7d4a1 (diff) | |
download | gitlab-ce-81662f7b9fae45689b9291427fd9b192ef88be4b.tar.gz |
Make subgroup_creation_level default to maintainer at SQL level
- Migration updates existing groups to "owner", then sets default to
"maintainer" so that new groups will default to that
- Update spec examples
Diffstat (limited to 'db')
-rw-r--r-- | db/migrate/20190626175626_add_group_creation_level_to_namespaces.rb | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/db/migrate/20190626175626_add_group_creation_level_to_namespaces.rb b/db/migrate/20190626175626_add_group_creation_level_to_namespaces.rb index eed0ba25f27..85ac89af46e 100644 --- a/db/migrate/20190626175626_add_group_creation_level_to_namespaces.rb +++ b/db/migrate/20190626175626_add_group_creation_level_to_namespaces.rb @@ -12,6 +12,7 @@ class AddGroupCreationLevelToNamespaces < ActiveRecord::Migration[5.1] :subgroup_creation_level, :integer, default: 0) + change_column_default(:namespaces, :subgroup_creation_level, 1) end end |