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
d6450717
Commit
d6450717
authored
6 years ago
by
Mayra Cabrera
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Modifies index on DeployTokens to use id
parent
18a15693
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
db/migrate/20180319190020_create_deploy_tokens.rb
db/migrate/20180319190020_create_deploy_tokens.rb
+1
-1
db/schema.rb
db/schema.rb
+1
-1
No files found.
db/migrate/20180319190020_create_deploy_tokens.rb
View file @
d6450717
...
...
@@ -13,7 +13,7 @@ class CreateDeployTokens < ActiveRecord::Migration
t
.
string
:name
,
null:
false
t
.
string
:token
,
index:
{
unique:
true
},
null:
false
t
.
index
[
:token
,
:expires_at
],
where:
"(revoked IS FALSE)"
t
.
index
[
:token
,
:expires_at
,
:id
],
where:
"(revoked IS FALSE)"
end
end
end
This diff is collapsed.
Click to expand it.
db/schema.rb
View file @
d6450717
...
...
@@ -693,7 +693,7 @@ ActiveRecord::Schema.define(version: 20180405142733) do
t
.
string
"token"
,
null:
false
end
add_index
"deploy_tokens"
,
[
"token"
,
"expires_at"
],
name:
"index_deploy_tokens_on_token_and_expires_at
"
,
where:
"(revoked IS FALSE)"
,
using: :btree
add_index
"deploy_tokens"
,
[
"token"
,
"expires_at"
,
"id"
],
name:
"index_deploy_tokens_on_token_and_expires_at_and_id
"
,
where:
"(revoked IS FALSE)"
,
using: :btree
add_index
"deploy_tokens"
,
[
"token"
],
name:
"index_deploy_tokens_on_token"
,
unique:
true
,
using: :btree
create_table
"deployments"
,
force: :cascade
do
|
t
|
...
...
This diff is collapsed.
Click to expand it.
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