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