BigW Consortium Gitlab
Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
gitlab-ce
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Forest Godfrey
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
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
9 additions
and
2 deletions
+9
-2
application_setting.rb
app/models/application_setting.rb
+2
-1
20160412140240_add_repository_checks_enabled_setting.rb
...e/20160412140240_add_repository_checks_enabled_setting.rb
+5
-0
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
require_two_factor_authentication:
false
,
two_factor_grace_period:
48
,
recaptcha_enabled:
false
,
akismet_enabled:
false
akismet_enabled:
false
,
repository_checks_enabled:
true
,
)
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 @@
#
# 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
enable_extension
"plpgsql"
...
...
@@ -78,6 +78,7 @@ ActiveRecord::Schema.define(version: 20160331133914) do
t
.
string
"akismet_api_key"
t
.
boolean
"email_author_in_body"
,
default:
false
t
.
integer
"default_group_visibility"
t
.
boolean
"repository_checks_enabled"
,
default:
true
end
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