mirror of
https://github.com/maybe-finance/maybe.git
synced 2025-08-02 20:15:22 +02:00
perf: Add index to sync status (#2337)
* - Add index to sync status * - revert typo * - revert unrelated schema.rb change
This commit is contained in:
parent
9f6c9b4057
commit
1d2e7fcae0
2 changed files with 9 additions and 1 deletions
7
db/migrate/20250605031616_add_index_to_sync_status.rb
Normal file
7
db/migrate/20250605031616_add_index_to_sync_status.rb
Normal file
|
@ -0,0 +1,7 @@
|
|||
class AddIndexToSyncStatus < ActiveRecord::Migration[7.2]
|
||||
disable_ddl_transaction!
|
||||
|
||||
def change
|
||||
add_index :syncs, :status, if_not_exists: true, algorithm: :concurrently
|
||||
end
|
||||
end
|
Loading…
Add table
Add a link
Reference in a new issue