Welcome to mirror list, hosted at ThFree Co, Russian Federation.

alerts_service_data.rb « project_services « models « app - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 5a52ed83455ef9e560f8ce02ffad293aa51013a9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
# frozen_string_literal: true

require 'securerandom'

class AlertsServiceData < ApplicationRecord
  belongs_to :service, class_name: 'AlertsService'

  validates :service, presence: true

  attr_encrypted :token,
    mode: :per_attribute_iv,
    key: Settings.attr_encrypted_db_key_base_truncated,
    algorithm: 'aes-256-gcm'
end