debian-mirror-gitlab/app/models/project_services/alerts_service_data.rb
2020-03-13 15:44:24 +05:30

14 lines
332 B
Ruby

# 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