Sha256: 0c5cebd6efebf2c30b4a4251f252a5648e610c25077ece4250a5d5c9269e67d9

Contents?: true

Size: 259 Bytes

Versions: 24

Compression:

Stored size: 259 Bytes

Contents

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

  def down
    remove_column :katello_rpms, :nvra
  end
end

Version data entries

24 entries across 24 versions & 1 rubygems

Version Path
katello-3.5.2 db/migrate/20160908234510_add_rpm_nvra.rb
katello-3.5.1.1 db/migrate/20160908234510_add_rpm_nvra.rb
katello-3.5.1 db/migrate/20160908234510_add_rpm_nvra.rb
katello-3.5.0.1 db/migrate/20160908234510_add_rpm_nvra.rb
katello-3.5.0 db/migrate/20160908234510_add_rpm_nvra.rb
katello-3.5.0.rc2 db/migrate/20160908234510_add_rpm_nvra.rb
katello-3.5.0.rc1 db/migrate/20160908234510_add_rpm_nvra.rb
katello-3.4.5 db/migrate/20160908234510_add_rpm_nvra.rb
katello-3.4.4 db/migrate/20160908234510_add_rpm_nvra.rb
katello-3.4.2 db/migrate/20160908234510_add_rpm_nvra.rb
katello-3.4.1 db/migrate/20160908234510_add_rpm_nvra.rb
katello-3.4.0.2 db/migrate/20160908234510_add_rpm_nvra.rb
katello-3.4.0.1 db/migrate/20160908234510_add_rpm_nvra.rb
katello-3.3.2 db/migrate/20160908234510_add_rpm_nvra.rb
katello-3.4.0 db/migrate/20160908234510_add_rpm_nvra.rb
katello-3.4.0.rc2 db/migrate/20160908234510_add_rpm_nvra.rb
katello-3.4.0.rc1 db/migrate/20160908234510_add_rpm_nvra.rb
katello-3.3.1.1 db/migrate/20160908234510_add_rpm_nvra.rb
katello-3.3.1 db/migrate/20160908234510_add_rpm_nvra.rb
katello-3.3.0.1 db/migrate/20160908234510_add_rpm_nvra.rb