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-4.13.1 db/migrate/20160131182301_add_download_policy_to_katello_repositories.rb
katello-4.13.0 db/migrate/20160131182301_add_download_policy_to_katello_repositories.rb
katello-4.12.1 db/migrate/20160131182301_add_download_policy_to_katello_repositories.rb
katello-4.13.0.rc1 db/migrate/20160131182301_add_download_policy_to_katello_repositories.rb
katello-4.12.0 db/migrate/20160131182301_add_download_policy_to_katello_repositories.rb
katello-4.12.0.rc3 db/migrate/20160131182301_add_download_policy_to_katello_repositories.rb
katello-4.12.0.rc2 db/migrate/20160131182301_add_download_policy_to_katello_repositories.rb
katello-4.12.0.rc1 db/migrate/20160131182301_add_download_policy_to_katello_repositories.rb
katello-4.11.1 db/migrate/20160131182301_add_download_policy_to_katello_repositories.rb
katello-4.11.0 db/migrate/20160131182301_add_download_policy_to_katello_repositories.rb
katello-4.11.0.rc2 db/migrate/20160131182301_add_download_policy_to_katello_repositories.rb
katello-4.11.0.rc1 db/migrate/20160131182301_add_download_policy_to_katello_repositories.rb
katello-4.10.0 db/migrate/20160131182301_add_download_policy_to_katello_repositories.rb
katello-4.9.2 db/migrate/20160131182301_add_download_policy_to_katello_repositories.rb
katello-4.10.0.rc2 db/migrate/20160131182301_add_download_policy_to_katello_repositories.rb
katello-4.10.0.rc1 db/migrate/20160131182301_add_download_policy_to_katello_repositories.rb
katello-4.8.4 db/migrate/20160131182301_add_download_policy_to_katello_repositories.rb
katello-4.9.1 db/migrate/20160131182301_add_download_policy_to_katello_repositories.rb
katello-4.8.3 db/migrate/20160131182301_add_download_policy_to_katello_repositories.rb
katello-4.9.0 db/migrate/20160131182301_add_download_policy_to_katello_repositories.rb