1
0
Fork 0
mirror of https://github.com/maybe-finance/maybe.git synced 2025-07-23 07:09:39 +02:00
Maybe/db/migrate/20250605031616_add_index_to_sync_status.rb
Iuri G. 1d2e7fcae0
perf: Add index to sync status (#2337)
* - Add index to sync status

* - revert typo

* - revert unrelated schema.rb change
2025-06-09 10:18:52 -04:00

7 lines
186 B
Ruby

class AddIndexToSyncStatus < ActiveRecord::Migration[7.2]
disable_ddl_transaction!
def change
add_index :syncs, :status, if_not_exists: true, algorithm: :concurrently
end
end