Sha256: 4f0e57f1e57ca277e9d1d4032527122d4b6fb2013fca3dfd54a9bc128cc3a110

Contents?: true

Size: 471 Bytes

Versions: 3

Compression:

Stored size: 471 Bytes

Contents

class RenameStatusSummaries < ActiveRecord::Migration[6.0]
  def change
    remove_column :host_reports, :applied, :integer
    remove_column :host_reports, :pending, :integer
    remove_column :host_reports, :other, :integer
    remove_column :host_reports, :failed, :integer

    add_column :host_reports, :change, :integer, default: 0
    add_column :host_reports, :nochange, :integer, default: 0
    add_column :host_reports, :failure, :integer, default: 0
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
foreman_host_reports-1.0.2 db/migrate/20220113064436_rename_status_summaries.rb
foreman_host_reports-1.0.1 db/migrate/20220113064436_rename_status_summaries.rb
foreman_host_reports-1.0.0 db/migrate/20220113064436_rename_status_summaries.rb