diff options
| author | Mayra Cabrera <mcabrera@gitlab.com> | 2018-04-06 13:54:39 -0500 |
|---|---|---|
| committer | Mayra Cabrera <mcabrera@gitlab.com> | 2018-04-06 21:20:17 -0500 |
| commit | d6450717abefbe4dbf891cb4d285f6c84e44f168 (patch) | |
| tree | 07989446eafbe7a5aa3a7bab2dfedf708777224a /db/migrate | |
| parent | 18a1569319af918fe3aff7564e344143d04d6aca (diff) | |
| download | gitlab-ce-d6450717abefbe4dbf891cb4d285f6c84e44f168.tar.gz | |
Modifies index on DeployTokens to use id
Diffstat (limited to 'db/migrate')
| -rw-r--r-- | db/migrate/20180319190020_create_deploy_tokens.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/db/migrate/20180319190020_create_deploy_tokens.rb b/db/migrate/20180319190020_create_deploy_tokens.rb index 318ad3f0610..d129459ea0a 100644 --- a/db/migrate/20180319190020_create_deploy_tokens.rb +++ b/db/migrate/20180319190020_create_deploy_tokens.rb @@ -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 |
