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
Jérome Perrin
gitlab-ce
Commits
86076012
Commit
86076012
authored
May 09, 2016
by
Grzegorz Bizon
Committed by
Lin Jen-Shin
Jun 09, 2016
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add config field to runner to lock it on project
parent
13fd88fa
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
0 deletions
+9
-0
db/migrate/20160509091049_add_locked_to_ci_runner.rb
db/migrate/20160509091049_add_locked_to_ci_runner.rb
+8
-0
db/schema.rb
db/schema.rb
+1
-0
No files found.
db/migrate/20160509091049_add_locked_to_ci_runner.rb
0 → 100644
View file @
86076012
class
AddLockedToCiRunner
<
ActiveRecord
::
Migration
##
# Downtime expected due to exclusive lock when setting default value.
#
def
change
add_column
:ci_runners
,
:locked
,
:boolean
,
default:
false
,
null:
false
end
end
db/schema.rb
View file @
86076012
...
...
@@ -285,6 +285,7 @@ ActiveRecord::Schema.define(version: 20160608155312) do
t
.
string
"platform"
t
.
string
"architecture"
t
.
boolean
"run_untagged"
,
default:
true
,
null:
false
t
.
boolean
"locked"
,
default:
false
,
null:
false
end
add_index
"ci_runners"
,
[
"description"
],
name:
"index_ci_runners_on_description_trigram"
,
using: :gin
,
opclasses:
{
"description"
=>
"gin_trgm_ops"
}
...
...
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