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.14.2 db/migrate/20220120163252_fix_docker_download_policy.rb
katello-4.15.0 db/migrate/20220120163252_fix_docker_download_policy.rb
katello-4.15.0.rc2 db/migrate/20220120163252_fix_docker_download_policy.rb
katello-4.15.0.rc1 db/migrate/20220120163252_fix_docker_download_policy.rb
katello-4.14.1 db/migrate/20220120163252_fix_docker_download_policy.rb
katello-4.14.0 db/migrate/20220120163252_fix_docker_download_policy.rb
katello-4.14.0.rc3 db/migrate/20220120163252_fix_docker_download_policy.rb
katello-4.14.0.rc2 db/migrate/20220120163252_fix_docker_download_policy.rb
katello-4.14.0.rc1.1 db/migrate/20220120163252_fix_docker_download_policy.rb
katello-4.14.0.rc1 db/migrate/20220120163252_fix_docker_download_policy.rb
katello-4.13.1 db/migrate/20220120163252_fix_docker_download_policy.rb
katello-4.13.0 db/migrate/20220120163252_fix_docker_download_policy.rb
katello-4.12.1 db/migrate/20220120163252_fix_docker_download_policy.rb
katello-4.13.0.rc1 db/migrate/20220120163252_fix_docker_download_policy.rb
katello-4.12.0 db/migrate/20220120163252_fix_docker_download_policy.rb
katello-4.12.0.rc3 db/migrate/20220120163252_fix_docker_download_policy.rb
katello-4.12.0.rc2 db/migrate/20220120163252_fix_docker_download_policy.rb
katello-4.12.0.rc1 db/migrate/20220120163252_fix_docker_download_policy.rb
katello-4.11.1 db/migrate/20220120163252_fix_docker_download_policy.rb
katello-4.11.0 db/migrate/20220120163252_fix_docker_download_policy.rb