<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>hkob</author_name>
  <author_url>https://blog.hatena.ne.jp/hkob/</author_url>
  <blog_title>hkob’s blog</blog_title>
  <blog_url>https://hkob.hatenablog.com/</blog_url>
  <categories>
    <anon>Rails</anon>
  </categories>
  <description>第63回の RailsTips では、第二のモデルである Comment モデルの追加について説明されています。新たに作成された Comment モデルは、Article モデルへの参照を保持します。また、commenter と body には null: false を追加しています。さらに、手動で記述していた article_id による index や、外部キー制約も自動で設定されています。データベースのマイグレーションが完了し、次回は属性に関するテストの実施に移ります。(要約 by Notion AI)</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fhkob.hatenablog.com%2Fentry%2F2024%2F02%2F01%2F050000&quot; title=&quot;第2のモデルを追加する: 小林研 Rails Tips (63) - hkob’s blog&quot; class=&quot;embed-card embed-blogcard&quot; scrolling=&quot;no&quot; frameborder=&quot;0&quot; style=&quot;display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;&quot;&gt;&lt;/iframe&gt;</html>
  <image_url></image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2024-02-01 05:00:00</published>
  <title>第2のモデルを追加する: 小林研 Rails Tips (63)</title>
  <type>rich</type>
  <url>https://hkob.hatenablog.com/entry/2024/02/01/050000</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
