Sha256: e110c234772eb93e102afd0f7c5e508d44899a2fd38f3928c1ee0ea14ab28cab

Contents?: true

Size: 253 Bytes

Versions: 136

Compression:

Stored size: 253 Bytes

Contents

class AddRpmNvra < ActiveRecord::Migration[4.2]
  def up
    add_column :katello_rpms, :nvra, :string, :limit => 1020
    Katello::Rpm.find_each { |r| r.update!(:nvra => r.build_nvra) }
  end

  def down
    remove_column :katello_rpms, :nvra
  end
end

Version data entries

136 entries across 136 versions & 1 rubygems

Version Path
katello-4.11.0.rc2 db/migrate/20160908234510_add_rpm_nvra.rb
katello-4.11.0.rc1 db/migrate/20160908234510_add_rpm_nvra.rb
katello-4.10.0 db/migrate/20160908234510_add_rpm_nvra.rb
katello-4.9.2 db/migrate/20160908234510_add_rpm_nvra.rb
katello-4.10.0.rc2 db/migrate/20160908234510_add_rpm_nvra.rb
katello-4.10.0.rc1 db/migrate/20160908234510_add_rpm_nvra.rb
katello-4.8.4 db/migrate/20160908234510_add_rpm_nvra.rb
katello-4.9.1 db/migrate/20160908234510_add_rpm_nvra.rb
katello-4.8.3 db/migrate/20160908234510_add_rpm_nvra.rb
katello-4.9.0 db/migrate/20160908234510_add_rpm_nvra.rb
katello-4.7.6 db/migrate/20160908234510_add_rpm_nvra.rb
katello-4.8.2 db/migrate/20160908234510_add_rpm_nvra.rb
katello-4.9.0.rc2 db/migrate/20160908234510_add_rpm_nvra.rb
katello-4.9.0.rc1 db/migrate/20160908234510_add_rpm_nvra.rb
katello-4.8.1 db/migrate/20160908234510_add_rpm_nvra.rb
katello-4.7.5 db/migrate/20160908234510_add_rpm_nvra.rb
katello-4.8.0 db/migrate/20160908234510_add_rpm_nvra.rb
katello-4.8.0.rc2 db/migrate/20160908234510_add_rpm_nvra.rb
katello-4.7.4 db/migrate/20160908234510_add_rpm_nvra.rb
katello-4.8.0.rc1 db/migrate/20160908234510_add_rpm_nvra.rb