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
2026-10-07 10:32:12 +02:00
@@ -1,5 +1,5 @@
class AddRoomIdAndCreatedAtIndexToMessages < ActiveRecord::Migration[8.2] class AddRoomIdAndCreatedAtIndexToMessages < ActiveRecord::Migration[8.2]
def change def change
add_index :messages, %i[ room_id created_at ] add_index :messages, %i[ room_id created_at ], if_not_exists: true
end end
end end