Sha256: 7bec54942402e9aa6bc9e0ea3af0d766cf53a68902e9fdfc635bc66a90e98cae

Contents?: true

Size: 380 Bytes

Versions: 10

Compression:

Stored size: 380 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

10 entries across 10 versions & 1 rubygems

Version Path
katello-4.14.2 db/migrate/20160131182301_add_download_policy_to_katello_repositories.rb
katello-4.15.0 db/migrate/20160131182301_add_download_policy_to_katello_repositories.rb
katello-4.15.0.rc2 db/migrate/20160131182301_add_download_policy_to_katello_repositories.rb
katello-4.15.0.rc1 db/migrate/20160131182301_add_download_policy_to_katello_repositories.rb
katello-4.14.1 db/migrate/20160131182301_add_download_policy_to_katello_repositories.rb
katello-4.14.0 db/migrate/20160131182301_add_download_policy_to_katello_repositories.rb
katello-4.14.0.rc3 db/migrate/20160131182301_add_download_policy_to_katello_repositories.rb
katello-4.14.0.rc2 db/migrate/20160131182301_add_download_policy_to_katello_repositories.rb
katello-4.14.0.rc1.1 db/migrate/20160131182301_add_download_policy_to_katello_repositories.rb
katello-4.14.0.rc1 db/migrate/20160131182301_add_download_policy_to_katello_repositories.rb