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
Léo-Paul Géneau
gitlab-ce
Commits
4a32b07d
Commit
4a32b07d
authored
Dec 10, 2015
by
Grzegorz Bizon
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add `runners_registration_token` to ApplicationSettings
parent
cd97dba2
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
8 additions
and
2 deletions
+8
-2
app/models/application_setting.rb
app/models/application_setting.rb
+1
-1
db/migrate/20151210072243_add_runners_registration_token_to_application_settings.rb
...add_runners_registration_token_to_application_settings.rb
+5
-0
db/schema.rb
db/schema.rb
+2
-1
No files found.
app/models/application_setting.rb
View file @
4a32b07d
...
@@ -27,6 +27,7 @@
...
@@ -27,6 +27,7 @@
# admin_notification_email :string(255)
# admin_notification_email :string(255)
# shared_runners_enabled :boolean default(TRUE), not null
# shared_runners_enabled :boolean default(TRUE), not null
# max_artifacts_size :integer default(100), not null
# max_artifacts_size :integer default(100), not null
# runners_registration_token :string(255)
#
#
class
ApplicationSetting
<
ActiveRecord
::
Base
class
ApplicationSetting
<
ActiveRecord
::
Base
...
@@ -128,5 +129,4 @@ class ApplicationSetting < ActiveRecord::Base
...
@@ -128,5 +129,4 @@ class ApplicationSetting < ActiveRecord::Base
/x
)
/x
)
self
.
restricted_signup_domains
.
reject!
{
|
d
|
d
.
empty?
}
self
.
restricted_signup_domains
.
reject!
{
|
d
|
d
.
empty?
}
end
end
end
end
db/migrate/20151210072243_add_runners_registration_token_to_application_settings.rb
0 → 100644
View file @
4a32b07d
class
AddRunnersRegistrationTokenToApplicationSettings
<
ActiveRecord
::
Migration
def
change
add_column
:application_settings
,
:runners_registration_token
,
:string
end
end
db/schema.rb
View file @
4a32b07d
...
@@ -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:
201512
0316213
3
)
do
ActiveRecord
::
Schema
.
define
(
version:
201512
1007224
3
)
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"
...
@@ -49,6 +49,7 @@ ActiveRecord::Schema.define(version: 20151203162133) do
...
@@ -49,6 +49,7 @@ ActiveRecord::Schema.define(version: 20151203162133) do
t
.
string
"admin_notification_email"
t
.
string
"admin_notification_email"
t
.
boolean
"shared_runners_enabled"
,
default:
true
,
null:
false
t
.
boolean
"shared_runners_enabled"
,
default:
true
,
null:
false
t
.
integer
"max_artifacts_size"
,
default:
100
,
null:
false
t
.
integer
"max_artifacts_size"
,
default:
100
,
null:
false
t
.
string
"runners_registration_token"
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