mirror of
https://github.com/basecamp/once-campfire.git
synced 2026-10-08 15:50:08 +09:00
bf5dc0d74d
The Rust port creates index_messages_on_room_id_and_created_at on boot, under the same name and on the same columns, with CREATE INDEX IF NOT EXISTS. On a database the port opened before this migration ran, db:prepare stopped with "index ... already exists" and the app didn't start. With if_not_exists the migration skips an index that is already there and creates it everywhere else. Databases that already ran the migration don't run it again, and the dumped schema is the same, so db/schema.rb doesn't change. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01LwoX7uRy5vFZSNKJhSqMSG