Project

General

Profile

Download (389 Bytes) Statistics
| Branch: | Tag: | Revision:
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