summaryrefslogtreecommitdiff
path: root/app
diff options
context:
space:
mode:
authorImre Farkas <ifarkas@gitlab.com>2019-02-20 11:39:37 +0000
committerNick Thomas <nick@gitlab.com>2019-02-20 11:39:37 +0000
commit6d92a3d4e232d4137f66773c82f01c32d7474a21 (patch)
treeb3fda377c51504a6d21da1742cac3de7fd668ef0 /app
parent83a23297bdeb5086ecc96d86b2e264dd3591022d (diff)
downloadgitlab-ce-6d92a3d4e232d4137f66773c82f01c32d7474a21.tar.gz
Remove undigested token column from personal_access_tokens table
Token column are no longer used as token values are stored digested in token_digest.
Diffstat (limited to 'app')
-rw-r--r--app/models/personal_access_token.rb5
1 files changed, 4 insertions, 1 deletions
diff --git a/app/models/personal_access_token.rb b/app/models/personal_access_token.rb
index 73a58f2420e..ed78a46eaf3 100644
--- a/app/models/personal_access_token.rb
+++ b/app/models/personal_access_token.rb
@@ -2,8 +2,11 @@
class PersonalAccessToken < ActiveRecord::Base
include Expirable
+ include IgnorableColumn
include TokenAuthenticatable
- add_authentication_token_field :token, digest: true, fallback: true
+
+ add_authentication_token_field :token, digest: true
+ ignore_column :token
REDIS_EXPIRY_TIME = 3.minutes