https://github.com/rails/rails/releases/tag/v7.0.5 割と非互換な変更が多いのでまとめておく has_one関連でのcreate_associationの挙動変更 https://github.com/rails/rails/pull/46386 のバックポートがさりげなくv7.0.5に入っている Supplier has_one Account (unique index付き) 既にaccountが登録されている際に「supplier.create_account!」を実行した時の挙動が変わる v7.0.4 ActiveRecord::RecordNotUnique 発生 v7.0.5 accountsがDELETE & INSERT される 同じ修正が原因だが、https://github.com/rails/rails/issues/4