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
4c4f72f6
Commit
4c4f72f6
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
8ac3263a
Changes
2
Show 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.
ee/
db/migrate/20180115094742_add_default_project_creation_setting.rb
→
db/migrate/20180115094742_add_default_project_creation_setting.rb
View file @
4c4f72f6
...
...
@@ -6,14 +6,10 @@ class AddDefaultProjectCreationSetting < ActiveRecord::Migration[4.2]
disable_ddl_transaction!
def
up
unless
column_exists?
(
:application_settings
,
:default_project_creation
)
add_column_with_default
(
:application_settings
,
:default_project_creation
,
:integer
,
default:
2
)
end
end
def
down
if
column_exists?
(
:application_settings
,
:default_project_creation
)
remove_column
(
:application_settings
,
:default_project_creation
)
end
end
end
db/migrate/20190311132500_add_default_project_creation_application_setting.rb
deleted
100644 → 0
View file @
8ac3263a
# 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