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
0
Merge Requests
0
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
Boxiang Sun
gitlab-ce
Commits
e3f211a6
Commit
e3f211a6
authored
Apr 08, 2019
by
Kamil Trzciński
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Backport `add_default_project_creation_setting` to CE
parent
eb377b85
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
15 additions
and
22 deletions
+15
-22
db/migrate/20180115094742_add_default_project_creation_setting.rb
...te/20180115094742_add_default_project_creation_setting.rb
+15
-0
db/migrate/20190311132500_add_default_project_creation_application_setting.rb
...32500_add_default_project_creation_application_setting.rb
+0
-22
No files found.
db/migrate/20180115094742_add_default_project_creation_setting.rb
0 → 100644
View file @
e3f211a6
class
AddDefaultProjectCreationSetting
<
ActiveRecord
::
Migration
[
4.2
]
include
Gitlab
::
Database
::
MigrationHelpers
DOWNTIME
=
false
disable_ddl_transaction!
def
up
add_column_with_default
(
:application_settings
,
:default_project_creation
,
:integer
,
default:
2
)
end
def
down
remove_column
(
:application_settings
,
:default_project_creation
)
end
end
db/migrate/20190311132500_add_default_project_creation_application_setting.rb
deleted
100644 → 0
View file @
eb377b85
# 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
AddDefaultProjectCreationApplicationSetting
<
ActiveRecord
::
Migration
[
5.0
]
include
Gitlab
::
Database
::
MigrationHelpers
DOWNTIME
=
false
def
up
unless
column_exists?
(
:application_settings
,
:default_project_creation
)
add_column
(
:application_settings
,
:default_project_creation
,
:integer
,
default:
2
,
null:
false
)
end
end
def
down
if
column_exists?
(
:application_settings
,
:default_project_creation
)
remove_column
(
:application_settings
,
:default_project_creation
)
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