[index] Add index on status_stats.created_at

This commit is contained in:
Fosco Marotto
2021-01-03 15:02:40 -05:00
parent 46ceced444
commit 7a58d0fa58
2 changed files with 9 additions and 1 deletions

View File

@@ -0,0 +1,7 @@
class AddIndexOnStatusStatsCreatedAt < ActiveRecord::Migration[5.2]
disable_ddl_transaction!
def change
add_index :status_stats, :created_at, algorithm: :concurrently
end
end