Sha256: 12185b205ec73022720aa2fdbbd057544dab49fcf3964b3bb390065d72994a5b

Contents?: true

Size: 379 Bytes

Versions: 185

Compression:

Stored size: 379 Bytes

Contents

class AddDownloadPolicyToKatelloRepositories < ActiveRecord::Migration[4.2]
  class DownloadPolicyRepository < ApplicationRecord
    self.table_name = "katello_repositories"
  end
  def change
    add_column :katello_repositories, :download_policy, :string, :limit => 255
    DownloadPolicyRepository.where(content_type: 'yum').update_all(download_policy: 'immediate')
  end
end

Version data entries

185 entries across 185 versions & 1 rubygems

Version Path
katello-3.11.1 db/migrate/20160131182301_add_download_policy_to_katello_repositories.rb
katello-3.11.0 db/migrate/20160131182301_add_download_policy_to_katello_repositories.rb
katello-3.11.0.rc2 db/migrate/20160131182301_add_download_policy_to_katello_repositories.rb
katello-3.11.0.rc1 db/migrate/20160131182301_add_download_policy_to_katello_repositories.rb
katello-3.10.0 db/migrate/20160131182301_add_download_policy_to_katello_repositories.rb
katello-3.10.0.rc1.1 db/migrate/20160131182301_add_download_policy_to_katello_repositories.rb
katello-3.9.1 db/migrate/20160131182301_add_download_policy_to_katello_repositories.rb
katello-3.10.0.rc1 db/migrate/20160131182301_add_download_policy_to_katello_repositories.rb
katello-3.9.0 db/migrate/20160131182301_add_download_policy_to_katello_repositories.rb
katello-3.8.1 db/migrate/20160131182301_add_download_policy_to_katello_repositories.rb
katello-3.9.0.rc2 db/migrate/20160131182301_add_download_policy_to_katello_repositories.rb
katello-3.9.0.rc1 db/migrate/20160131182301_add_download_policy_to_katello_repositories.rb
katello-3.7.1.1 db/migrate/20160131182301_add_download_policy_to_katello_repositories.rb
katello-3.7.1 db/migrate/20160131182301_add_download_policy_to_katello_repositories.rb
katello-3.8.0 db/migrate/20160131182301_add_download_policy_to_katello_repositories.rb
katello-3.8.0.rc3 db/migrate/20160131182301_add_download_policy_to_katello_repositories.rb
katello-3.8.0.rc2 db/migrate/20160131182301_add_download_policy_to_katello_repositories.rb
katello-3.7.0 db/migrate/20160131182301_add_download_policy_to_katello_repositories.rb
katello-3.8.0.rc1 db/migrate/20160131182301_add_download_policy_to_katello_repositories.rb
katello-3.7.0.rc2 db/migrate/20160131182301_add_download_policy_to_katello_repositories.rb