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
Boxiang Sun
gitlab-ce
Commits
0f5073d9
Commit
0f5073d9
authored
Dec 03, 2018
by
Grzegorz Bizon
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Migrate runners token first before fully switching
parent
143b80bb
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
3 additions
and
3 deletions
+3
-3
app/models/ci/runner.rb
app/models/ci/runner.rb
+1
-1
app/models/group.rb
app/models/group.rb
+1
-1
app/models/project.rb
app/models/project.rb
+1
-1
No files found.
app/models/ci/runner.rb
View file @
0f5073d9
...
...
@@ -10,7 +10,7 @@ module Ci
include
FromUnion
include
TokenAuthenticatable
add_authentication_token_field
:token
,
encrypted:
true
,
fallback
:
true
add_authentication_token_field
:token
,
encrypted:
true
,
migrating
:
true
enum
access_level:
{
not_protected:
0
,
...
...
app/models/group.rb
View file @
0f5073d9
...
...
@@ -55,7 +55,7 @@ class Group < Namespace
validates
:two_factor_grace_period
,
presence:
true
,
numericality:
{
greater_than_or_equal_to:
0
}
add_authentication_token_field
:runners_token
,
encrypted:
true
,
fallback
:
true
add_authentication_token_field
:runners_token
,
encrypted:
true
,
migrating
:
true
after_create
:post_create_hook
after_destroy
:post_destroy_hook
...
...
app/models/project.rb
View file @
0f5073d9
...
...
@@ -85,7 +85,7 @@ class Project < ActiveRecord::Base
default_value_for
:snippets_enabled
,
gitlab_config_features
.
snippets
default_value_for
:only_allow_merge_if_all_discussions_are_resolved
,
false
add_authentication_token_field
:runners_token
,
encrypted:
true
,
fallback
:
true
add_authentication_token_field
:runners_token
,
encrypted:
true
,
migrating
:
true
before_validation
:mark_remote_mirrors_for_removal
,
if:
->
{
RemoteMirror
.
table_exists?
}
...
...
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