Sha256: e3a70a94dc883253a01dcbf4734737775defbec7f4ef9f7cc2efdc14e1b60f8b

Contents?: true

Size: 389 Bytes

Versions: 5

Compression:

Stored size: 389 Bytes

Contents

class AddStatusToReport < ActiveRecord::Migration
  def self.up
    add_column :reports, :status, :integer
    add_index :reports, :status
    add_index :reports, :host_id
    add_index :reports, :reported_at
  end

  def self.down
    remove_index :reports, :status
    remove_index :reports, :host_id
    remove_index :reports, :reported_at
    remove_column :reports, :status
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
foreman_discovery-1.0.0 test/foreman_app/db/migrate/20091022054108_add_status_to_report.rb
foreman_discovery-1.0.0.rc4 test/foreman_app/db/migrate/20091022054108_add_status_to_report.rb
foreman_discovery-1.0.0.rc3 test/foreman_app/db/migrate/20091022054108_add_status_to_report.rb
foreman_discovery-1.0.0.rc2 test/foreman_app/db/migrate/20091022054108_add_status_to_report.rb
foreman_discovery-1.0.0.rc1 test/foreman_app/db/migrate/20091022054108_add_status_to_report.rb