Sha256: 2d5444769ccb5060aae55cdca212c661775433f49657b8777e54e91b89d23392

Contents?: true

Size: 374 Bytes

Versions: 7

Compression:

Stored size: 374 Bytes

Contents

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

7 entries across 7 versions & 1 rubygems

Version Path
katello-3.5.2 db/migrate/20160131182301_add_download_policy_to_katello_repositories.rb
katello-3.5.1.1 db/migrate/20160131182301_add_download_policy_to_katello_repositories.rb
katello-3.5.1 db/migrate/20160131182301_add_download_policy_to_katello_repositories.rb
katello-3.5.0.1 db/migrate/20160131182301_add_download_policy_to_katello_repositories.rb
katello-3.5.0 db/migrate/20160131182301_add_download_policy_to_katello_repositories.rb
katello-3.5.0.rc2 db/migrate/20160131182301_add_download_policy_to_katello_repositories.rb
katello-3.5.0.rc1 db/migrate/20160131182301_add_download_policy_to_katello_repositories.rb