Commit efafd73d authored by Małgorzata Ksionek's avatar Małgorzata Ksionek

Refactor method to avoid disabling linters

Unify Gitlab::Access calls

Modify migration

Fix leftover
parent 58048584
...@@ -8,9 +8,15 @@ class AddProjectCreationLevelToNamespaces < ActiveRecord::Migration[5.0] ...@@ -8,9 +8,15 @@ class AddProjectCreationLevelToNamespaces < ActiveRecord::Migration[5.0]
DOWNTIME = false DOWNTIME = false
def change def up
unless column_exists?(:namespaces, :project_creation_level) unless column_exists?(:namespaces, :project_creation_level)
add_column :namespaces, :project_creation_level, :integer add_column :namespaces, :project_creation_level, :integer
end end
end end
def down
unless column_exists?(:namespaces, :project_creation_level)
remove_column :namespaces, :project_creation_level, :integer
end
end
end end
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment