Add limit: 255 to token_ecnrypted column

This commit is contained in:
Stan Hu 2019-08-26 19:44:28 -07:00
parent bc4efd18a0
commit 2dd6f423b7
2 changed files with 2 additions and 2 deletions

View File

@ -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

View File

@ -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