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
iv
gitlab-ce
Commits
b37d3b94
Commit
b37d3b94
authored
Apr 12, 2016
by
Jacob Vosmaer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add repository_checks_enabled setting
parent
31831415
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
9 additions
and
2 deletions
+9
-2
app/models/application_setting.rb
app/models/application_setting.rb
+2
-1
db/migrate/20160412140240_add_repository_checks_enabled_setting.rb
...e/20160412140240_add_repository_checks_enabled_setting.rb
+5
-0
db/schema.rb
db/schema.rb
+2
-1
No files found.
app/models/application_setting.rb
View file @
b37d3b94
...
@@ -153,7 +153,8 @@ class ApplicationSetting < ActiveRecord::Base
...
@@ -153,7 +153,8 @@ class ApplicationSetting < ActiveRecord::Base
require_two_factor_authentication:
false
,
require_two_factor_authentication:
false
,
two_factor_grace_period:
48
,
two_factor_grace_period:
48
,
recaptcha_enabled:
false
,
recaptcha_enabled:
false
,
akismet_enabled:
false
akismet_enabled:
false
,
repository_checks_enabled:
true
,
)
)
end
end
...
...
db/migrate/20160412140240_add_repository_checks_enabled_setting.rb
0 → 100644
View file @
b37d3b94
class
AddRepositoryChecksEnabledSetting
<
ActiveRecord
::
Migration
def
change
add_column
:application_settings
,
:repository_checks_enabled
,
:boolean
,
default:
true
end
end
db/schema.rb
View file @
b37d3b94
...
@@ -11,7 +11,7 @@
...
@@ -11,7 +11,7 @@
#
#
# It's strongly recommended that you check this file into your version control system.
# It's strongly recommended that you check this file into your version control system.
ActiveRecord
::
Schema
.
define
(
version:
20160
331133914
)
do
ActiveRecord
::
Schema
.
define
(
version:
20160
412140240
)
do
# These are extensions that must be enabled in order to support this database
# These are extensions that must be enabled in order to support this database
enable_extension
"plpgsql"
enable_extension
"plpgsql"
...
@@ -78,6 +78,7 @@ ActiveRecord::Schema.define(version: 20160331133914) do
...
@@ -78,6 +78,7 @@ ActiveRecord::Schema.define(version: 20160331133914) do
t
.
string
"akismet_api_key"
t
.
string
"akismet_api_key"
t
.
boolean
"email_author_in_body"
,
default:
false
t
.
boolean
"email_author_in_body"
,
default:
false
t
.
integer
"default_group_visibility"
t
.
integer
"default_group_visibility"
t
.
boolean
"repository_checks_enabled"
,
default:
true
end
end
create_table
"audit_events"
,
force: :cascade
do
|
t
|
create_table
"audit_events"
,
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