gitlab-org--gitlab-foss/db/post_migrate/20220111102314_truncate_ci_...

15 lines
271 B
Ruby

# frozen_string_literal: true
class TruncateCiMirrorTables < Gitlab::Database::Migration[1.0]
disable_ddl_transaction!
def up
execute('TRUNCATE TABLE ci_namespace_mirrors')
execute('TRUNCATE TABLE ci_project_mirrors')
end
def down
# noop
end
end