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
1
Merge Requests
1
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
nexedi
gitlab-ce
Commits
27e788a2
Commit
27e788a2
authored
Jul 04, 2018
by
Francisco Javier López
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Code review comments applied
parent
32a76a68
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
3 additions
and
3 deletions
+3
-3
app/models/ci/build.rb
app/models/ci/build.rb
+1
-1
db/migrate/20180613081317_create_ci_builds_runner_session.rb
db/migrate/20180613081317_create_ci_builds_runner_session.rb
+1
-1
db/schema.rb
db/schema.rb
+1
-1
No files found.
app/models/ci/build.rb
View file @
27e788a2
...
...
@@ -186,7 +186,7 @@ module Ci
end
after_transition
running:
any
do
|
build
|
build
.
runner_session
&
.
destroy
Ci
::
BuildRunnerSession
.
where
(
build:
build
).
delete_all
end
end
...
...
db/migrate/20180613081317_create_ci_builds_runner_session.rb
View file @
27e788a2
...
...
@@ -8,7 +8,7 @@ class CreateCiBuildsRunnerSession < ActiveRecord::Migration
DOWNTIME
=
false
def
change
create_table
:ci_builds_runner_session
do
|
t
|
create_table
:ci_builds_runner_session
,
id: :bigserial
do
|
t
|
t
.
integer
:build_id
,
null:
false
t
.
string
:url
,
null:
false
t
.
string
:certificate
...
...
db/schema.rb
View file @
27e788a2
...
...
@@ -447,7 +447,7 @@ ActiveRecord::Schema.define(version: 20180702114215) do
add_index
"ci_builds_metadata"
,
[
"build_id"
],
name:
"index_ci_builds_metadata_on_build_id"
,
unique:
true
,
using: :btree
add_index
"ci_builds_metadata"
,
[
"project_id"
],
name:
"index_ci_builds_metadata_on_project_id"
,
using: :btree
create_table
"ci_builds_runner_session"
,
force: :cascade
do
|
t
|
create_table
"ci_builds_runner_session"
,
id: :bigserial
,
force: :cascade
do
|
t
|
t
.
integer
"build_id"
,
null:
false
t
.
string
"url"
,
null:
false
t
.
string
"certificate"
...
...
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