Sha256: ad1fa2716e909c1a52c49c39a0fae6da209901dc994da6cdc8fb87f2fed3cf7a

Contents?: true

Size: 371 Bytes

Versions: 4

Compression:

Stored size: 371 Bytes

Contents

class ChangeStatusColumn < ActiveRecord::Migration[6.0]
  def change
    remove_column :host_reports, :status, :bigint

    add_column :host_reports, :applied, :integer, default: 0
    add_column :host_reports, :failed, :integer, default: 0
    add_column :host_reports, :pending, :integer, default: 0
    add_column :host_reports, :other, :integer, default: 0
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
foreman_host_reports-1.0.2 db/migrate/20211011141813_change_status_column.rb
foreman_host_reports-1.0.1 db/migrate/20211011141813_change_status_column.rb
foreman_host_reports-1.0.0 db/migrate/20211011141813_change_status_column.rb
foreman_host_reports-0.0.4 db/migrate/20211011141813_change_status_column.rb