summaryrefslogtreecommitdiff
path: root/lib/gitlab/background_migration/cleanup_concurrent_rename.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/gitlab/background_migration/cleanup_concurrent_rename.rb')
-rw-r--r--lib/gitlab/background_migration/cleanup_concurrent_rename.rb14
1 files changed, 14 insertions, 0 deletions
diff --git a/lib/gitlab/background_migration/cleanup_concurrent_rename.rb b/lib/gitlab/background_migration/cleanup_concurrent_rename.rb
new file mode 100644
index 00000000000..d3f366f3480
--- /dev/null
+++ b/lib/gitlab/background_migration/cleanup_concurrent_rename.rb
@@ -0,0 +1,14 @@
+# frozen_string_literal: true
+
+module Gitlab
+ module BackgroundMigration
+ # Background migration for cleaning up a concurrent column rename.
+ class CleanupConcurrentRename < CleanupConcurrentSchemaChange
+ RESCHEDULE_DELAY = 10.minutes
+
+ def cleanup_concurrent_schema_change(table, old_column, new_column)
+ cleanup_concurrent_column_rename(table, old_column, new_column)
+ end
+ end
+ end
+end