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 'db/post_migrate/20200313203550_remove_orphaned_chat_names.rb')
-rw-r--r--db/post_migrate/20200313203550_remove_orphaned_chat_names.rb13
1 files changed, 0 insertions, 13 deletions
diff --git a/db/post_migrate/20200313203550_remove_orphaned_chat_names.rb b/db/post_migrate/20200313203550_remove_orphaned_chat_names.rb
deleted file mode 100644
index 59cd2b31772..00000000000
--- a/db/post_migrate/20200313203550_remove_orphaned_chat_names.rb
+++ /dev/null
@@ -1,13 +0,0 @@
-# frozen_string_literal: true
-
-class RemoveOrphanedChatNames < ActiveRecord::Migration[6.0]
- DOWNTIME = false
-
- def up
- execute("DELETE FROM chat_names WHERE service_id NOT IN(SELECT id FROM services WHERE services.type = 'chat')")
- end
-
- def down
- say 'Orphaned user chat names were removed as a part of this migration and are non-recoverable'
- end
-end