summaryrefslogtreecommitdiff
path: root/app/models/project_services/jira_tracker_data.rb
blob: 2c145abf5c959daf8aa79ecbd6cc0e482596fa6a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
# frozen_string_literal: true

class JiraTrackerData < ApplicationRecord
  include Services::DataFields
  include IgnorableColumns

  ignore_columns %i[
    encrypted_proxy_address
    encrypted_proxy_address_iv
    encrypted_proxy_port
    encrypted_proxy_port_iv
    encrypted_proxy_username
    encrypted_proxy_username_iv
    encrypted_proxy_password
    encrypted_proxy_password_iv
  ], remove_with: '14.0', remove_after: '2021-05-22'

  attr_encrypted :url, encryption_options
  attr_encrypted :api_url, encryption_options
  attr_encrypted :username, encryption_options
  attr_encrypted :password, encryption_options

  enum deployment_type: { unknown: 0, server: 1, cloud: 2 }, _prefix: :deployment
end