Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
5ca1325f
Commit
5ca1325f
authored
Apr 09, 2019
by
Kamil Trzciński
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix backport of project_creation_level migration
parent
4c4f72f6
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
0 additions
and
22 deletions
+0
-22
db/migrate/20180115113902_add_project_creation_level_to_groups.rb
...te/20180115113902_add_project_creation_level_to_groups.rb
+0
-0
db/migrate/20190311132527_add_project_creation_level_to_namespaces.rb
...0190311132527_add_project_creation_level_to_namespaces.rb
+0
-22
No files found.
ee/
db/migrate/20180115113902_add_project_creation_level_to_groups.rb
→
db/migrate/20180115113902_add_project_creation_level_to_groups.rb
View file @
5ca1325f
File moved
db/migrate/20190311132527_add_project_creation_level_to_namespaces.rb
deleted
100644 → 0
View file @
4c4f72f6
# frozen_string_literal: true
# See http://doc.gitlab.com/ce/development/migration_style_guide.html
# for more information on how to write migrations for GitLab.
class
AddProjectCreationLevelToNamespaces
<
ActiveRecord
::
Migration
[
5.0
]
include
Gitlab
::
Database
::
MigrationHelpers
DOWNTIME
=
false
def
up
unless
column_exists?
(
:namespaces
,
:project_creation_level
)
add_column
:namespaces
,
:project_creation_level
,
:integer
end
end
def
down
unless
column_exists?
(
:namespaces
,
:project_creation_level
)
remove_column
:namespaces
,
:project_creation_level
,
:integer
end
end
end
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment