diff options
author | Etienne BaquƩ <ebaque@gitlab.com> | 2019-07-11 23:41:04 +0300 |
---|---|---|
committer | Stan Hu <stanhu@gmail.com> | 2019-08-27 05:39:48 +0300 |
commit | 3394c6532e4ef4582d806aed8c5285bf462fea3b (patch) | |
tree | 48cfdd2e654adb6542912b4b1a21ea37b076fe59 /db/schema.rb | |
parent | d6b420baffef4ac0ca1684d7a0fc00d20f026644 (diff) |
Added migration to encrypt token in DeployToken records
Added migrations to make token column accepting null values and to add
encrypted token column.
Diffstat (limited to 'db/schema.rb')
-rw-r--r-- | db/schema.rb | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/db/schema.rb b/db/schema.rb index 36bf2371994..f36ee372382 100644 --- a/db/schema.rb +++ b/db/schema.rb @@ -1121,8 +1121,9 @@ ActiveRecord::Schema.define(version: 2019_08_20_163320) do t.datetime_with_timezone "expires_at", null: false t.datetime_with_timezone "created_at", null: false t.string "name", null: false - t.string "token", null: false + t.string "token" t.string "username" + t.string "token_encrypted" 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 end |