summaryrefslogtreecommitdiff
path: root/app/models/project_services/jira_tracker_data.rb
diff options
context:
space:
mode:
Diffstat (limited to 'app/models/project_services/jira_tracker_data.rb')
-rw-r--r--app/models/project_services/jira_tracker_data.rb15
1 files changed, 1 insertions, 14 deletions
diff --git a/app/models/project_services/jira_tracker_data.rb b/app/models/project_services/jira_tracker_data.rb
index e4e0f64150a..f24ba8877d2 100644
--- a/app/models/project_services/jira_tracker_data.rb
+++ b/app/models/project_services/jira_tracker_data.rb
@@ -1,20 +1,7 @@
# frozen_string_literal: true
class JiraTrackerData < ApplicationRecord
- belongs_to :service
-
- delegate :activated?, to: :service, allow_nil: true
-
- validates :service, presence: true
-
- def self.encryption_options
- {
- key: Settings.attr_encrypted_db_key_base_32,
- encode: true,
- mode: :per_attribute_iv,
- algorithm: 'aes-256-gcm'
- }
- end
+ include Services::DataFields
attr_encrypted :url, encryption_options
attr_encrypted :api_url, encryption_options