Add index on category and time for heartbeats

This commit is contained in:
Zach Latta 2025-03-15 17:48:41 -04:00
parent 455b57c630
commit f43f8a4a38

View file

@ -0,0 +1,5 @@
class AddIndexCategoryTimeHeartbeats < ActiveRecord::Migration[8.0]
def change
add_index :heartbeats, [:category, :time], name: 'index_heartbeats_on_category_and_time'
end
end