Sha256: 0a35322d2db1aabdbd7b22a67688f10149f87c197851caa349e2ee4da05a5cd7
Contents?: true
Size: 482 Bytes
Versions: 28
Compression:
Stored size: 482 Bytes
Contents
class RemoveDrpmFromIgnorableContent < ActiveRecord::Migration[6.0] def up Katello::RootRepository.select { |r| !r&.ignorable_content&.blank? }.each do |root| if root&.ignorable_content&.include?("srpm") root.ignorable_content = ["srpm"] else root.ignorable_content = [] end root.checksum_type = nil if root.download_policy == ::Katello::RootRepository::DOWNLOAD_ON_DEMAND root.save! end end def down #noop end end
Version data entries
28 entries across 28 versions & 1 rubygems