debian-mirror-gitlab/db/post_migrate/20210205174154_remove_bad_dependency_proxy_manifests.rb
2021-03-11 19:13:27 +05:30

16 lines
377 B
Ruby

# frozen_string_literal: true
class RemoveBadDependencyProxyManifests < ActiveRecord::Migration[6.0]
DOWNTIME = false
def up
# We run destroy on each record because we need the callback to remove
# the underlying files
DependencyProxy::Manifest.where.not(content_type: nil).destroy_all # rubocop:disable Cop/DestroyAll
end
def down
# no op
end
end