Project

General

Profile

Download (193 Bytes) Statistics
| Branch: | Tag: | Revision:
class AddIndexToReports < ActiveRecord::Migration[4.2]
def up
add_index :reports, [:reported_at, :host_id]
end

def down
remove_index :reports, [:reported_at, :host_id]
end
end
(22-22/407)