v3: github_oauth_token is encrypted
This commit is contained in:
parent
08505fead0
commit
05c20422cc
|
@ -7,6 +7,9 @@ module Travis::API::V3
|
|||
has_many :repositories, through: :permissions
|
||||
has_many :organizations, through: :memberships
|
||||
|
||||
|
||||
serialize :github_oauth_token, Extensions::EncryptedColumn.new(disable: true)
|
||||
|
||||
def token
|
||||
tokens.first_or_create.token
|
||||
end
|
||||
|
|
Loading…
Reference in New Issue
Block a user