From 2dd6f423b77c82436e3e0b3978d9bda513207b4b Mon Sep 17 00:00:00 2001 From: Stan Hu Date: Mon, 26 Aug 2019 19:44:28 -0700 Subject: [PATCH] Add limit: 255 to token_ecnrypted column --- .../20190711200508_add_token_encrypted_to_deploy_tokens.rb | 2 +- db/schema.rb | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/db/migrate/20190711200508_add_token_encrypted_to_deploy_tokens.rb b/db/migrate/20190711200508_add_token_encrypted_to_deploy_tokens.rb index 3c352441057..ea0956fdf7f 100644 --- a/db/migrate/20190711200508_add_token_encrypted_to_deploy_tokens.rb +++ b/db/migrate/20190711200508_add_token_encrypted_to_deploy_tokens.rb @@ -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 diff --git a/db/schema.rb b/db/schema.rb index 1393737b8b9..f30dad3d030 100644 --- a/db/schema.rb +++ b/db/schema.rb @@ -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