Sha256: 4a5ce1e517fc9f7a6c8346e7db297db962e1a898bcc149e173391fec8cf9a121

Contents?: true

Size: 332 Bytes

Versions: 63

Compression:

Stored size: 332 Bytes

Contents

class FixDebianDownloadPolicy < ActiveRecord::Migration[6.0]
  def up
    Katello::RootRepository.where(content_type: "deb")
                           .where(download_policy: [nil, ""])
                           .update_all(:download_policy => "immediate")
  end

  def down
    fail ActiveRecord::IrreversibleMigration
  end
end

Version data entries

63 entries across 63 versions & 1 rubygems

Version Path
katello-4.15.0.rc2 db/migrate/20220127120843_fix_debian_download_policy.rb
katello-4.15.0.rc1 db/migrate/20220127120843_fix_debian_download_policy.rb
katello-4.14.1 db/migrate/20220127120843_fix_debian_download_policy.rb
katello-4.14.0 db/migrate/20220127120843_fix_debian_download_policy.rb
katello-4.14.0.rc3 db/migrate/20220127120843_fix_debian_download_policy.rb
katello-4.14.0.rc2 db/migrate/20220127120843_fix_debian_download_policy.rb
katello-4.14.0.rc1.1 db/migrate/20220127120843_fix_debian_download_policy.rb
katello-4.14.0.rc1 db/migrate/20220127120843_fix_debian_download_policy.rb
katello-4.13.1 db/migrate/20220127120843_fix_debian_download_policy.rb
katello-4.13.0 db/migrate/20220127120843_fix_debian_download_policy.rb
katello-4.12.1 db/migrate/20220127120843_fix_debian_download_policy.rb
katello-4.13.0.rc1 db/migrate/20220127120843_fix_debian_download_policy.rb
katello-4.12.0 db/migrate/20220127120843_fix_debian_download_policy.rb
katello-4.12.0.rc3 db/migrate/20220127120843_fix_debian_download_policy.rb
katello-4.12.0.rc2 db/migrate/20220127120843_fix_debian_download_policy.rb
katello-4.12.0.rc1 db/migrate/20220127120843_fix_debian_download_policy.rb
katello-4.11.1 db/migrate/20220127120843_fix_debian_download_policy.rb
katello-4.11.0 db/migrate/20220127120843_fix_debian_download_policy.rb
katello-4.11.0.rc2 db/migrate/20220127120843_fix_debian_download_policy.rb
katello-4.11.0.rc1 db/migrate/20220127120843_fix_debian_download_policy.rb