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

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'app/models/chat_name.rb')
-rw-r--r--app/models/chat_name.rb4
1 files changed, 0 insertions, 4 deletions
diff --git a/app/models/chat_name.rb b/app/models/chat_name.rb
index da7312df18b..ff3f2663b73 100644
--- a/app/models/chat_name.rb
+++ b/app/models/chat_name.rb
@@ -1,8 +1,6 @@
# frozen_string_literal: true
class ChatName < ApplicationRecord
- include LooseForeignKey
-
LAST_USED_AT_INTERVAL = 1.hour
belongs_to :integration, foreign_key: :service_id
@@ -16,8 +14,6 @@ class ChatName < ApplicationRecord
validates :user_id, uniqueness: { scope: [:service_id] }
validates :chat_id, uniqueness: { scope: [:service_id, :team_id] }
- loose_foreign_key :ci_pipeline_chat_data, :chat_name_id, on_delete: :async_delete
-
# Updates the "last_used_timestamp" but only if it wasn't already updated
# recently.
#