debian-mirror-gitlab/db/post_migrate/20230116111252_finalize_todo_sanitization.rb
2023-03-17 16:20:25 +05:30

22 lines
461 B
Ruby

# frozen_string_literal: true
class FinalizeTodoSanitization < Gitlab::Database::Migration[2.1]
MIGRATION = 'SanitizeConfidentialTodos'
disable_ddl_transaction!
restrict_gitlab_migration gitlab_schema: :gitlab_main
def up
ensure_batched_background_migration_is_finished(
job_class_name: MIGRATION,
table_name: :notes,
column_name: :id,
job_arguments: [],
finalize: true
)
end
def down
# no-op
end
end