Sha256: d2ea38af765ffdbcff85dd7ece612f2aa2b97b764232d916be384170d0f06467

Contents?: true

Size: 483 Bytes

Versions: 53

Compression:

Stored size: 483 Bytes

Contents

class ChangeErrataTimestampsToDates < ActiveRecord::Migration
  def up
    change_column(:katello_errata, :issued, :date)
    change_column(:katello_errata, :updated, :date)
    add_index(:katello_errata, :issued)
    add_index(:katello_errata, :updated)
  end

  def down
    change_column(:katello_errata, :issued, :timestamp)
    change_column(:katello_errata, :updated, :timestamp)
    remove_index(:katello_errata, :issued)
    remove_index(:katello_errata, :updated)
  end
end

Version data entries

53 entries across 53 versions & 1 rubygems

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