remove debug code
This commit is contained in:
parent
e8ab7c0be6
commit
0a91a69d0d
|
@ -2,13 +2,13 @@ module Travis::API::V3
|
|||
class Models::Token < Model
|
||||
belongs_to :user
|
||||
validate :token, presence: true
|
||||
serialize :token#, Extensions::EncryptedColumn.new(disable: true)
|
||||
serialize :token, Extensions::EncryptedColumn.new(disable: true)
|
||||
before_validation :generate_token, on: :create
|
||||
|
||||
protected
|
||||
|
||||
def generate_token
|
||||
self.token = "christopher"#SecureRandom.base64(15).tr('+/=lIO0', 'pqrsxyz')
|
||||
self.token = SecureRandom.base64(15).tr('+/=lIO0', 'pqrsxyz')
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in New Issue
Block a user