has_one と belongs_to についての復習 - Qiita

belongs_to の使い方を理解したのでメモhas_one と belongs_to はセットで使用する。従属する側のモデルに belongs_to を記述し、従属させる側のモデルに ha…