Files
archived-hc-harbor/db/migrate/20250722233948_add_index_to_heartbeats_project.rb
Kartikey Chauhan 3cb6569a5c lint
2025-07-23 06:31:59 +05:30

10 lines
293 B
Ruby

class AddIndexToHeartbeatsProject < ActiveRecord::Migration[8.0]
# this is what i got from stackoverflow
disable_ddl_transaction!
def change
add_index :heartbeats, :project, algorithm: :concurrently
add_index :heartbeats, [ :project, :time ], algorithm: :concurrently
end
end