foreman/db/migrate/20090920065522_add_index_to_reports.rb @ 8a65dff7
8fc86595 | Ohad Levy | class AddIndexToReports < ActiveRecord::Migration
|
|
def self.up
|
|||
add_index :reports, [:reported_at, :host_id]
|
|||
end
|
|||
def self.down
|
|||
remove_index :reports, [:reported_at, :host_id]
|
|||
end
|
|||
end
|