foreman/db/migrate/20090920065522_add_index_to_reports.rb @ 672e0467
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
|