debian-mirror-gitlab/db/post_migrate/20220328095848_delete_failed_reset_duplicate_ci_runners_token_migration_records.rb
2022-07-16 19:58:13 +02:00

18 lines
551 B
Ruby

# frozen_string_literal: true
class DeleteFailedResetDuplicateCiRunnersTokenMigrationRecords < Gitlab::Database::Migration[1.0]
def up
# Delete remaining records of botched migrations before we start the new migrations
Gitlab::Database::BackgroundMigrationJob
.for_migration_class('ResetDuplicateCiRunnersTokenValuesOnProjects')
.delete_all
Gitlab::Database::BackgroundMigrationJob
.for_migration_class('ResetDuplicateCiRunnersTokenEncryptedValuesOnProjects')
.delete_all
end
def down
# no-op
end
end