-
Notifications
You must be signed in to change notification settings - Fork 75
commentsテーブルの重複したインデックスを削除 #9487
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
📝 Walkthroughウォークスルーコメントテーブルの 変更
Estimated code review effort🎯 2 (Simple) | ⏱️ ~8 分 関連する可能性のある課題
ポエム
🚥 Pre-merge checks | ✅ 2 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (2 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing touches
📜 Recent review detailsConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Pro 📒 Files selected for processing (2)
🚧 Files skipped from review as they are similar to previous changes (2)
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (1)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
|
@sharoa119 |
|
@ryufuta さん |
sharoa119
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@ryufuta さん
お疲れ様です。
お待たせしてしまいすみません💦
確認させていただき、問題なかったためapproveさせていただきます✨
不整合のご対応をしてくださり、ありがとうございます!
|
@sharoa119 |
マイグレーションファイルと整合しない方のインデックスを削除
8229440 to
5816fd2
Compare
|
@komagata |
komagata
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
確認させていただきました。OKです〜🙆♂️
Issue
概要
commentsテーブルのuser_idカラムに対してcomment_user_idとindex_comments_on_user_idの2つのインデックスが存在していた。comment_user_idはマイグレーションファイルを使用せずに追加された可能性が高い。詳細はIssueを参照。
ために
comment_user_idのインデックスを削除するマイグレーションファイルを作成した。変更確認方法
UI、振る舞い、ロジックの変更はない。
Files changedの
db/schema.rbのdiffを見てcomment_user_idのインデックスだけが削除されていることを確認する。念のため、
commentsテーブルについてマイグレーションファイルとスキーマファイルが整合していることを以下の手順で確認する。chore/remove-duplicate-comment-user-indexをローカルに取り込むdb/schema.rbのcommentsテーブルの箇所に変更が生じていないことを確認する※
commentsテーブル以外の不整合は本PRでは解消していないため変更自体は多数生じることに注意。※確認後は以下の手順でローカルのDBをあるべき状態に戻す。
git restore .で変更を戻すbin/rails db:resetを実行するSummary by CodeRabbit
リリースノート
✏️ Tip: You can customize this high-level summary in your review settings.