summaryrefslogtreecommitdiff
path: root/lib/gitlab/background_migration/cleanup_concurrent_type_change.rb
blob: 48411095dbb905e6e0ac9c9a3926f444e4293053 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
# frozen_string_literal: true

module Gitlab
  module BackgroundMigration
    # Background migration for cleaning up a concurrent column type changeb.
    class CleanupConcurrentTypeChange < CleanupConcurrentSchemaChange
      RESCHEDULE_DELAY = 10.minutes

      def cleanup_concurrent_schema_change(table, old_column, new_column)
        cleanup_concurrent_column_type_change(table, old_column)
      end
    end
  end
end