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.14.2 db/migrate/20160908234510_add_rpm_nvra.rb
katello-4.15.0 db/migrate/20160908234510_add_rpm_nvra.rb
katello-4.15.0.rc2 db/migrate/20160908234510_add_rpm_nvra.rb
katello-4.15.0.rc1 db/migrate/20160908234510_add_rpm_nvra.rb
katello-4.14.1 db/migrate/20160908234510_add_rpm_nvra.rb
katello-4.14.0 db/migrate/20160908234510_add_rpm_nvra.rb
katello-4.14.0.rc3 db/migrate/20160908234510_add_rpm_nvra.rb
katello-4.14.0.rc2 db/migrate/20160908234510_add_rpm_nvra.rb
katello-4.14.0.rc1.1 db/migrate/20160908234510_add_rpm_nvra.rb
katello-4.14.0.rc1 db/migrate/20160908234510_add_rpm_nvra.rb
katello-4.13.1 db/migrate/20160908234510_add_rpm_nvra.rb
katello-4.13.0 db/migrate/20160908234510_add_rpm_nvra.rb
katello-4.12.1 db/migrate/20160908234510_add_rpm_nvra.rb
katello-4.13.0.rc1 db/migrate/20160908234510_add_rpm_nvra.rb
katello-4.12.0 db/migrate/20160908234510_add_rpm_nvra.rb
katello-4.12.0.rc3 db/migrate/20160908234510_add_rpm_nvra.rb
katello-4.12.0.rc2 db/migrate/20160908234510_add_rpm_nvra.rb
katello-4.12.0.rc1 db/migrate/20160908234510_add_rpm_nvra.rb
katello-4.11.1 db/migrate/20160908234510_add_rpm_nvra.rb
katello-4.11.0 db/migrate/20160908234510_add_rpm_nvra.rb