summaryrefslogtreecommitdiff
path: root/app/models/alert_management/http_integration.rb
diff options
context:
space:
mode:
Diffstat (limited to 'app/models/alert_management/http_integration.rb')
-rw-r--r--app/models/alert_management/http_integration.rb3
1 files changed, 1 insertions, 2 deletions
diff --git a/app/models/alert_management/http_integration.rb b/app/models/alert_management/http_integration.rb
index 0c3b1679dc3..b2686924363 100644
--- a/app/models/alert_management/http_integration.rb
+++ b/app/models/alert_management/http_integration.rb
@@ -13,8 +13,7 @@ module AlertManagement
key: Settings.attr_encrypted_db_key_base_32,
algorithm: 'aes-256-gcm'
- default_value_for(:endpoint_identifier, allows_nil: false) { SecureRandom.hex(8) }
- default_value_for(:token) { generate_token }
+ attribute :endpoint_identifier, default: -> { SecureRandom.hex(8) }
validates :project, presence: true
validates :active, inclusion: { in: [true, false] }