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
d7bfbaf3
Commit
d7bfbaf3
authored
Jun 05, 2017
by
Tiago Botelho
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add mirror specific settings to application settings
parent
5527b8b5
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
38 additions
and
0 deletions
+38
-0
db/migrate/20170515093334_add_mirror_settings_to_application_setting.rb
...70515093334_add_mirror_settings_to_application_setting.rb
+35
-0
db/schema.rb
db/schema.rb
+3
-0
No files found.
db/migrate/20170515093334_add_mirror_settings_to_application_setting.rb
0 → 100644
View file @
d7bfbaf3
class
AddMirrorSettingsToApplicationSetting
<
ActiveRecord
::
Migration
include
Gitlab
::
Database
::
MigrationHelpers
DOWNTIME
=
false
disable_ddl_transaction!
def
up
add_column_with_default
:application_settings
,
:mirror_max_delay
,
:integer
,
default:
5
,
allow_null:
false
add_column_with_default
:application_settings
,
:mirror_max_capacity
,
:integer
,
default:
100
,
allow_null:
false
add_column_with_default
:application_settings
,
:mirror_capacity_threshold
,
:integer
,
default:
50
,
allow_null:
false
ApplicationSetting
.
expire
end
def
down
remove_column
:application_settings
,
:mirror_max_delay
remove_column
:application_settings
,
:mirror_max_capacity
remove_column
:application_settings
,
:mirror_capacity_threshold
end
end
db/schema.rb
View file @
d7bfbaf3
...
...
@@ -137,6 +137,9 @@ ActiveRecord::Schema.define(version: 20170602003304) do
t
.
boolean
"clientside_sentry_enabled"
,
default:
false
,
null:
false
t
.
string
"clientside_sentry_dsn"
t
.
boolean
"check_namespace_plan"
,
default:
false
,
null:
false
t
.
integer
"mirror_max_delay"
,
default:
5
,
null:
false
t
.
integer
"mirror_max_capacity"
,
default:
100
,
null:
false
t
.
integer
"mirror_capacity_threshold"
,
default:
50
,
null:
false
end
create_table
"approvals"
,
force: :cascade
do
|
t
|
...
...
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