Sha256: 94dea7b278719474c6848b38d7a2fecb1c4ce316bd9e590ee28effaf5b54979d

Contents?: true

Size: 378 Bytes

Versions: 9

Compression:

Stored size: 378 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.save!
    end
  end

  def down
    #noop
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
katello-4.9.1 db/migrate/20220228173251_remove_drpm_from_ignorable_content.rb
katello-4.9.0 db/migrate/20220228173251_remove_drpm_from_ignorable_content.rb
katello-4.8.2 db/migrate/20220228173251_remove_drpm_from_ignorable_content.rb
katello-4.9.0.rc2 db/migrate/20220228173251_remove_drpm_from_ignorable_content.rb
katello-4.9.0.rc1 db/migrate/20220228173251_remove_drpm_from_ignorable_content.rb
katello-4.8.1 db/migrate/20220228173251_remove_drpm_from_ignorable_content.rb
katello-4.8.0 db/migrate/20220228173251_remove_drpm_from_ignorable_content.rb
katello-4.8.0.rc2 db/migrate/20220228173251_remove_drpm_from_ignorable_content.rb
katello-4.8.0.rc1 db/migrate/20220228173251_remove_drpm_from_ignorable_content.rb