foreman/db/migrate/20091022054108_add_status_to_report.rb @ 8a65dff7
90b70658 | Ohad Levy | class AddStatusToReport < ActiveRecord::Migration
|
|
def self.up
|
|||
add_column :reports, :status, :integer
|
|||
add_index :reports, :status
|
|||
44c96500 | Ohad Levy | add_index :reports, :host_id
|
|
add_index :reports, :reported_at
|
|||
90b70658 | Ohad Levy | end
|
|
def self.down
|
|||
44c96500 | Ohad Levy | remove_index :reports, :status
|
|
remove_index :reports, :host_id
|
|||
remove_index :reports, :reported_at
|
|||
90b70658 | Ohad Levy | remove_column :reports, :status
|
|
end
|
|||
end
|