chore: move call index creation into private method

This commit is contained in:
Muhsin
2026-04-08 22:22:56 +04:00
parent 2b6ebd739e
commit 327cbbb0d5
@@ -18,6 +18,12 @@ class CreateCalls < ActiveRecord::Migration[7.0]
t.timestamps
end
add_call_indexes
end
private
def add_call_indexes
add_index :calls, [:provider, :provider_call_id], unique: true
add_index :calls, [:account_id, :conversation_id]
add_index :calls, :message_id