提交 d6450717 编写于 作者: M Mayra Cabrera

Modifies index on DeployTokens to use id

上级 18a15693
......@@ -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
......@@ -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|
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册