Sha256: a15b934dc4e08f8570dce4a284895f706d66d6cc0b2552adba03c4aa97535ef2

Contents?: true

Size: 335 Bytes

Versions: 65

Compression:

Stored size: 335 Bytes

Contents

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

  def down
    fail ActiveRecord::IrreversibleMigration
  end
end

Version data entries

65 entries across 65 versions & 1 rubygems

Version Path
katello-4.11.0.rc2 db/migrate/20220120163252_fix_docker_download_policy.rb
katello-4.11.0.rc1 db/migrate/20220120163252_fix_docker_download_policy.rb
katello-4.10.0 db/migrate/20220120163252_fix_docker_download_policy.rb
katello-4.9.2 db/migrate/20220120163252_fix_docker_download_policy.rb
katello-4.10.0.rc2 db/migrate/20220120163252_fix_docker_download_policy.rb
katello-4.10.0.rc1 db/migrate/20220120163252_fix_docker_download_policy.rb
katello-4.8.4 db/migrate/20220120163252_fix_docker_download_policy.rb
katello-4.9.1 db/migrate/20220120163252_fix_docker_download_policy.rb
katello-4.8.3 db/migrate/20220120163252_fix_docker_download_policy.rb
katello-4.9.0 db/migrate/20220120163252_fix_docker_download_policy.rb
katello-4.7.6 db/migrate/20220120163252_fix_docker_download_policy.rb
katello-4.8.2 db/migrate/20220120163252_fix_docker_download_policy.rb
katello-4.9.0.rc2 db/migrate/20220120163252_fix_docker_download_policy.rb
katello-4.9.0.rc1 db/migrate/20220120163252_fix_docker_download_policy.rb
katello-4.8.1 db/migrate/20220120163252_fix_docker_download_policy.rb
katello-4.7.5 db/migrate/20220120163252_fix_docker_download_policy.rb
katello-4.8.0 db/migrate/20220120163252_fix_docker_download_policy.rb
katello-4.8.0.rc2 db/migrate/20220120163252_fix_docker_download_policy.rb
katello-4.7.4 db/migrate/20220120163252_fix_docker_download_policy.rb
katello-4.8.0.rc1 db/migrate/20220120163252_fix_docker_download_policy.rb