summaryrefslogtreecommitdiff
path: root/db/post_migrate/20220707105529_cleanup_chat_name_service_id.rb
diff options
context:
space:
mode:
Diffstat (limited to 'db/post_migrate/20220707105529_cleanup_chat_name_service_id.rb')
-rw-r--r--db/post_migrate/20220707105529_cleanup_chat_name_service_id.rb13
1 files changed, 13 insertions, 0 deletions
diff --git a/db/post_migrate/20220707105529_cleanup_chat_name_service_id.rb b/db/post_migrate/20220707105529_cleanup_chat_name_service_id.rb
new file mode 100644
index 00000000000..aa3af4acf31
--- /dev/null
+++ b/db/post_migrate/20220707105529_cleanup_chat_name_service_id.rb
@@ -0,0 +1,13 @@
+# frozen_string_literal: true
+
+class CleanupChatNameServiceId < Gitlab::Database::Migration[2.0]
+ disable_ddl_transaction!
+
+ def up
+ cleanup_concurrent_column_rename :chat_names, :service_id, :integration_id
+ end
+
+ def down
+ undo_cleanup_concurrent_column_rename :chat_names, :service_id, :integration_id
+ end
+end