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
path: root/db
diff options
context:
space:
mode:
authorFabio Papa <fabtheman@gmail.com>2019-06-28 23:31:47 +0300
committerFabio Papa <fabtheman@gmail.com>2019-07-19 21:55:47 +0300
commit13d9c5dda20095e8f5aaaa173ec2fcc4213ba7bb (patch)
tree631dfbcd99a8b85322043b740fd9b5dde2b5b55c /db
parentec802d6434230cdbdb487ef6febe6205886035f9 (diff)
Style rules; Revert some examples
Diffstat (limited to 'db')
-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