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
4019c8c2
Commit
4019c8c2
authored
Apr 24, 2018
by
Bob Van Landuyt
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add `enforce_terms` to `application_settings`
Add a flag to applications settings to enforce users to accept terms before using the GitLab instance
parent
96373b0b
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
0 deletions
+10
-0
20180424090541_add_enforce_terms_to_application_settings.rb
...180424090541_add_enforce_terms_to_application_settings.rb
+9
-0
schema.rb
db/schema.rb
+1
-0
No files found.
db/migrate/20180424090541_add_enforce_terms_to_application_settings.rb
0 → 100644
View file @
4019c8c2
class
AddEnforceTermsToApplicationSettings
<
ActiveRecord
::
Migration
include
Gitlab
::
Database
::
MigrationHelpers
DOWNTIME
=
false
def
change
add_column
:application_settings
,
:enforce_terms
,
:boolean
,
default:
false
end
end
db/schema.rb
View file @
4019c8c2
...
...
@@ -158,6 +158,7 @@ ActiveRecord::Schema.define(version: 20180503150427) do
t
.
string
"auto_devops_domain"
t
.
boolean
"pages_domain_verification_enabled"
,
default:
true
,
null:
false
t
.
boolean
"allow_local_requests_from_hooks_and_services"
,
default:
false
,
null:
false
t
.
boolean
"enforce_terms"
,
default:
false
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