gitlab-org--gitlab-foss/db/migrate/20210525085325_backfill_dep...

19 lines
399 B
Ruby

# frozen_string_literal: true
class BackfillDeploymentsForBigintConversion < ActiveRecord::Migration[6.0]
include Gitlab::Database::MigrationHelpers
disable_ddl_transaction!
TABLE = :deployments
COLUMNS = %i(deployable_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