Skip to content

Conversation

@ryufuta
Copy link
Contributor

@ryufuta ryufuta commented Jan 6, 2026

Issue

概要

スキーマファイル(db/schema.rb)の2箇所の不備を修正してマイグレーションファイルとの不整合を解消した。
詳細はIssueを参照。

補足

既存のプロダクションコードとテストコードにusersテーブルのjob_seekingカラムに依存した箇所はなかった。
リポジトリ内にjob_seekingという変数は以下の2つに関連したものとして見つかるが、元々存在していたusersテーブルのjob_seekingカラム(卒業生が就職活動中かどうかを表すブール値)に依存したものではない。

変更確認方法

UI、振る舞い、ロジックの変更はない。
Issueに記載されている不要な行(マイグレーションをやり直すと削除される行)がdb/schema.rbから削除されていることをFiles changedを見て確認する。

Summary by CodeRabbit

  • チョア
    • ユーザー情報から職務経歴に関連するカラム(job_seeking)を削除しました。
    • 不要なデータベーステーブル(データ移行用テーブル)を削除してスキーマを整理しました。

✏️ Tip: この高レベル概要はレビュー設定でカスタマイズできます。

@ryufuta ryufuta self-assigned this Jan 6, 2026
@coderabbitai
Copy link

coderabbitai bot commented Jan 6, 2026

📝 Walkthrough

Walkthrough

データベーススキーマからdata_migrationsテーブルの定義を削除し、usersテーブルからjob_seekingブール型カラム(default: false, NOT NULL)を削除しています。

Changes

Cohort / File(s) 変更内容
スキーマ変更
db/schema.rb
data_migrationsテーブル定義の削除。usersテーブルからjob_seekingブールカラム(default: false, null: false)の削除。

Estimated code review effort

🎯 3 (Moderate) | ⏱️ ~20 minutes

Possibly related issues

Suggested reviewers

  • okuramasafumi

Poem

🐰 スキーマの道をひとつ掃いて、
古いテーブルをそっと送り出す、
カラムひとつ、さよならの挨拶、
軽やかに跳ねるコードの野原、
にんじんで祝杯をどうぞ! 🥕

🚥 Pre-merge checks | ✅ 3
✅ Passed checks (3 passed)
Check name Status Explanation
Title check ✅ Passed タイトルはスキーマファイルから不要な行を削除するという変更内容を明確に表しており、PR全体の主要な目的を正確に反映している。
Description check ✅ Passed PR説明はIssue番号、概要、変更の詳細、確認方法を記載しており、テンプレートの要求事項をほぼ満たしている。ただしScreenshotセクションが記載されていない。
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing touches
  • 📝 Generate docstrings

📜 Recent review details

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between 464837f and ec88916.

📒 Files selected for processing (1)
  • db/schema.rb
💤 Files with no reviewable changes (1)
  • db/schema.rb
⏰ 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)
  • GitHub Check: build_and_test

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.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@ryufuta ryufuta marked this pull request as ready for review January 6, 2026 08:20
@github-actions github-actions bot requested a review from okuramasafumi January 6, 2026 08:20
@ryufuta ryufuta requested a review from kitarou888 January 6, 2026 10:24
@ryufuta
Copy link
Contributor Author

ryufuta commented Jan 6, 2026

@kitarou888
チーム開発を休まれていることは存じていますが、kitarouさんが以前担当されたPRに関する不備の修正を含むのでフィードバックの意味を込めてレビュー依頼させていただいています。
修正内容は非常に簡単なものなのでお時間かからないかと思いますが、お忙しいようであれば他のメンバーにレビュー依頼するので断っていただいて大丈夫です。

@kitarou888
Copy link
Contributor

@ryufuta
フィードバックありがとうございます。
週末になりますがレビューさせていただきます🙏

Copy link
Contributor

@kitarou888 kitarou888 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@ryufuta
確認できましたのでApproveとさせていただきます!

自分のPRを今一度確認しましたが、完全にマイグレーションをし忘れていました・・・
このたびはありがとうございました🙇‍♂️

@ryufuta
Copy link
Contributor Author

ryufuta commented Jan 12, 2026

@kitarou888
お忙しいところレビューいただきありがとうございます!

data_migrationsテーブルはデータマイグレーション実行時に自動的に作成されるためスキーマファイルで管理する必要がない
@ryufuta ryufuta force-pushed the chore/clean-up-schema-file branch from 464837f to ec88916 Compare January 12, 2026 09:57
@ryufuta
Copy link
Contributor Author

ryufuta commented Jan 12, 2026

@okuramasafumi
お手隙の際にレビューをお願いします🙏

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants