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:
Diffstat (limited to 'db/migrate/20190626175626_add_group_creation_level_to_namespaces.rb')
-rw-r--r--db/migrate/20190626175626_add_group_creation_level_to_namespaces.rb7
1 files changed, 5 insertions, 2 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 b0ea74d4765..eed0ba25f27 100644
--- a/db/migrate/20190626175626_add_group_creation_level_to_namespaces.rb
+++ b/db/migrate/20190626175626_add_group_creation_level_to_namespaces.rb
@@ -5,10 +5,13 @@ class AddGroupCreationLevelToNamespaces < ActiveRecord::Migration[5.1]
DOWNTIME = false
disable_ddl_transaction!
-
+
def up
unless column_exists?(:namespaces, :subgroup_creation_level)
- add_column_with_default(:namespaces, :subgroup_creation_level, :integer, default: 0)
+ add_column_with_default(:namespaces,
+ :subgroup_creation_level,
+ :integer,
+ default: 0)
end
end