Sha256: 57640fc60bc09116eebcc8fc178606ee4b0c2a40090ba30774d99b0ebd0e14e4
Contents?: true
Size: 412 Bytes
Versions: 14
Compression:
Stored size: 412 Bytes
Contents
class FixRedHatRootRepositoryArch < ActiveRecord::Migration[6.0] def up ::Katello::RootRepository. joins("INNER JOIN katello_contents ON katello_contents.cp_content_id = katello_root_repositories.content_id"). where.not(arch: 'noarch').where.not("katello_contents.content_url ILIKE '%$basearch%'").update(arch: 'noarch') end def down fail ActiveRecord::IrreversibleMigration end end
Version data entries
14 entries across 14 versions & 1 rubygems