Sha256: 27eb78ab55d98fdfe586e0c3bb4c1de0d5898fab077b8e93925f13bd6650fd53

Contents?: true

Size: 375 Bytes

Versions: 37

Compression:

Stored size: 375 Bytes

Contents

class AddDownloadPolicyToKatelloRepositories < ActiveRecord::Migration
  class DownloadPolicyRepository < ActiveRecord::Base
    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

37 entries across 37 versions & 1 rubygems

Version Path
katello-3.4.5 db/migrate/20160131182301_add_download_policy_to_katello_repositories.rb
katello-3.4.4 db/migrate/20160131182301_add_download_policy_to_katello_repositories.rb
katello-3.4.2 db/migrate/20160131182301_add_download_policy_to_katello_repositories.rb
katello-3.4.1 db/migrate/20160131182301_add_download_policy_to_katello_repositories.rb
katello-3.4.0.2 db/migrate/20160131182301_add_download_policy_to_katello_repositories.rb
katello-3.4.0.1 db/migrate/20160131182301_add_download_policy_to_katello_repositories.rb
katello-3.3.2 db/migrate/20160131182301_add_download_policy_to_katello_repositories.rb
katello-3.4.0 db/migrate/20160131182301_add_download_policy_to_katello_repositories.rb
katello-3.4.0.rc2 db/migrate/20160131182301_add_download_policy_to_katello_repositories.rb
katello-3.4.0.rc1 db/migrate/20160131182301_add_download_policy_to_katello_repositories.rb
katello-3.3.1.1 db/migrate/20160131182301_add_download_policy_to_katello_repositories.rb
katello-3.3.1 db/migrate/20160131182301_add_download_policy_to_katello_repositories.rb
katello-3.3.0.1 db/migrate/20160131182301_add_download_policy_to_katello_repositories.rb
katello-3.3.0 db/migrate/20160131182301_add_download_policy_to_katello_repositories.rb
katello-3.3.0.rc2 db/migrate/20160131182301_add_download_policy_to_katello_repositories.rb
katello-3.3.0.rc1.1 db/migrate/20160131182301_add_download_policy_to_katello_repositories.rb
katello-3.3.0.rc1 db/migrate/20160131182301_add_download_policy_to_katello_repositories.rb
katello-3.2.1.1 db/migrate/20160131182301_add_download_policy_to_katello_repositories.rb
katello-3.2.1 db/migrate/20160131182301_add_download_policy_to_katello_repositories.rb
katello-3.2.0 db/migrate/20160131182301_add_download_policy_to_katello_repositories.rb