mirror of
https://github.com/basecamp/once-campfire.git
synced 2026-11-25 02:16:27 +09:00
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:
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
|
||||
Reference in new issue
Block a user