summaryrefslogtreecommitdiff
path: root/db/migrate/20210525100603_backfill_geo_job_artifact_deleted_events_for_bigint_conversion.rb
blob: c2845760b5c25df9da0ba5ad45218ae82f68d413 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
# frozen_string_literal: true

class BackfillGeoJobArtifactDeletedEventsForBigintConversion < ActiveRecord::Migration[6.0]
  include Gitlab::Database::MigrationHelpers

  disable_ddl_transaction!

  TABLE = :geo_job_artifact_deleted_events
  COLUMNS = %i(job_artifact_id)

  def up
    backfill_conversion_of_integer_to_bigint TABLE, COLUMNS
  end

  def down
    revert_backfill_conversion_of_integer_to_bigint TABLE, COLUMNS
  end
end