Sha256: d8f05061a34fc80812010a5e24bce5b9f228c0e7b793da5051b5c903ab940fb4

Contents?: true

Size: 201 Bytes

Versions: 134

Compression:

Stored size: 201 Bytes

Contents

class SetErrataUpdatedDate < ActiveRecord::Migration[5.0]
  def up
    Katello::Erratum.where(:updated => nil).find_each do |erratum|
      erratum.update(:updated => erratum.issued)
    end
  end
end

Version data entries

134 entries across 134 versions & 1 rubygems

Version Path
katello-4.7.1 db/migrate/20180103230812_set_errata_updated_date.rb
katello-4.6.2.1 db/migrate/20180103230812_set_errata_updated_date.rb
katello-4.6.2 db/migrate/20180103230812_set_errata_updated_date.rb
katello-4.7.0 db/migrate/20180103230812_set_errata_updated_date.rb
katello-4.6.1 db/migrate/20180103230812_set_errata_updated_date.rb
katello-4.7.0.rc2 db/migrate/20180103230812_set_errata_updated_date.rb
katello-4.7.0.rc1 db/migrate/20180103230812_set_errata_updated_date.rb
katello-4.4.2.2 db/migrate/20180103230812_set_errata_updated_date.rb
katello-4.4.2.1 db/migrate/20180103230812_set_errata_updated_date.rb
katello-4.4.2 db/migrate/20180103230812_set_errata_updated_date.rb
katello-4.5.1 db/migrate/20180103230812_set_errata_updated_date.rb
katello-4.6.0 db/migrate/20180103230812_set_errata_updated_date.rb
katello-4.6.0.rc2 db/migrate/20180103230812_set_errata_updated_date.rb
katello-4.6.0.rc1 db/migrate/20180103230812_set_errata_updated_date.rb
katello-4.5.0 db/migrate/20180103230812_set_errata_updated_date.rb
katello-4.5.0.rc2 db/migrate/20180103230812_set_errata_updated_date.rb
katello-4.4.1 db/migrate/20180103230812_set_errata_updated_date.rb
katello-4.5.0.rc1 db/migrate/20180103230812_set_errata_updated_date.rb
katello-4.4.0.2 db/migrate/20180103230812_set_errata_updated_date.rb
katello-4.4.0.1 db/migrate/20180103230812_set_errata_updated_date.rb