Commit 2dd6f423 authored by Stan Hu's avatar Stan Hu

Add limit: 255 to token_ecnrypted column

parent bc4efd18
......@@ -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
......@@ -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
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment