Merge pull request #334: Create the room and creation time index only where it is missing

Reviewed and merged by GPT on behalf of DHH.
This commit is contained in:
GPT on behalf of DHH committed 2026-10-07 10:32:12 +02:00
commit cf63b61361
1 file changed
+1 -1
@@ -1,5 +1,5 @@
class AddRoomIdAndCreatedAtIndexToMessages < ActiveRecord::Migration[8.2]
def change
add_index :messages, %i[ room_id created_at ]
add_index :messages, %i[ room_id created_at ], if_not_exists: true
end
end