15 lines
377 B
Ruby
15 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
|