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