Project

General

Profile

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