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
2dd6f423
Commit
2dd6f423
authored
Aug 26, 2019
by
Stan Hu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add limit: 255 to token_ecnrypted column
parent
bc4efd18
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
db/migrate/20190711200508_add_token_encrypted_to_deploy_tokens.rb
...te/20190711200508_add_token_encrypted_to_deploy_tokens.rb
+1
-1
db/schema.rb
db/schema.rb
+1
-1
No files found.
db/migrate/20190711200508_add_token_encrypted_to_deploy_tokens.rb
View file @
2dd6f423
...
...
@@ -6,6 +6,6 @@ class AddTokenEncryptedToDeployTokens < ActiveRecord::Migration[5.1]
DOWNTIME
=
false
def
change
add_column
:deploy_tokens
,
:token_encrypted
,
:string
add_column
:deploy_tokens
,
:token_encrypted
,
:string
,
limit:
255
end
end
db/schema.rb
View file @
2dd6f423
...
...
@@ -1123,7 +1123,7 @@ ActiveRecord::Schema.define(version: 2019_08_20_163320) do
t
.
string
"name"
,
null:
false
t
.
string
"token"
t
.
string
"username"
t
.
string
"token_encrypted"
t
.
string
"token_encrypted"
,
limit:
255
t
.
index
[
"token"
,
"expires_at"
,
"id"
],
name:
"index_deploy_tokens_on_token_and_expires_at_and_id"
,
where:
"(revoked IS FALSE)"
t
.
index
[
"token"
],
name:
"index_deploy_tokens_on_token"
,
unique:
true
t
.
index
[
"token_encrypted"
],
name:
"index_deploy_tokens_on_token_encrypted"
,
unique:
true
...
...
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