Sha256: f4e4f0ef783c3bf295a695185ea0fb5e59a6936ad900b229416ef646b369dfab
Contents?: true
Size: 449 Bytes
Versions: 44
Compression:
Stored size: 449 Bytes
Contents
class UpdateCustomCdn < ActiveRecord::Migration[6.1] class FakeCdnConfiguration < Katello::Model self.table_name = 'katello_cdn_configurations' self.inheritance_column = nil end def change FakeCdnConfiguration.reset_column_information FakeCdnConfiguration.where(type: 'redhat_cdn').each do |config| config.update!(type: 'custom_cdn') unless Katello::Resources::CDN::CdnResource.redhat_cdn?(config.url) end end end
Version data entries
44 entries across 44 versions & 1 rubygems