Sha256: 072dbae7e9b968641f86029a739381069b2dff08644612585e4483ff12e3b9e1

Contents?: true

Size: 292 Bytes

Versions: 70

Compression:

Stored size: 292 Bytes

Contents

class MigrateBackgroundDownloadPolicyToMigrate < ActiveRecord::Migration[6.0]
  def change
    Katello::RootRepository.where(:download_policy => 'background').each do |root_repo|
      root_repo.update_column(:download_policy, ::Katello::RootRepository::DOWNLOAD_IMMEDIATE)
    end
  end
end

Version data entries

70 entries across 70 versions & 1 rubygems

Version Path
katello-4.3.1 db/migrate/20210201163238_migrate_background_download_policy_to_migrate.rb
katello-4.4.0 db/migrate/20210201163238_migrate_background_download_policy_to_migrate.rb
katello-4.4.0.rc2 db/migrate/20210201163238_migrate_background_download_policy_to_migrate.rb
katello-4.4.0.rc1 db/migrate/20210201163238_migrate_background_download_policy_to_migrate.rb
katello-4.3.0 db/migrate/20210201163238_migrate_background_download_policy_to_migrate.rb
katello-4.3.0.rc4 db/migrate/20210201163238_migrate_background_download_policy_to_migrate.rb
katello-4.3.0.rc3 db/migrate/20210201163238_migrate_background_download_policy_to_migrate.rb
katello-4.3.0.rc2.1 db/migrate/20210201163238_migrate_background_download_policy_to_migrate.rb
katello-4.3.0.rc2 db/migrate/20210201163238_migrate_background_download_policy_to_migrate.rb
katello-4.3.0.rc1 db/migrate/20210201163238_migrate_background_download_policy_to_migrate.rb