Add limit: 255 to token_ecnrypted column
This commit is contained in:
parent
bc4efd18a0
commit
2dd6f423b7
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue