debian-mirror-gitlab/db/post_migrate/20210115215854_cancel_artifact_expiry_backfill.rb
2021-03-08 18:12:59 +05:30

22 lines
379 B
Ruby

# frozen_string_literal: true
class CancelArtifactExpiryBackfill < ActiveRecord::Migration[6.0]
include Gitlab::Database::MigrationHelpers
DOWNTIME = false
MIGRATION = 'BackfillArtifactExpiryDate'
disable_ddl_transaction!
def up
Gitlab::BackgroundMigration.steal(MIGRATION) do |job|
job.delete
false
end
end
def down
# no-op
end
end