<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>cevid_cpp</author_name>
  <author_url>https://blog.hatena.ne.jp/cevid_cpp/</author_url>
  <blog_title>ボクココ</blog_title>
  <blog_url>https://bokukoko.hatenablog.com/</blog_url>
  <categories>
    <anon>データベース</anon>
    <anon>Ruby on Rails</anon>
  </categories>
  <description>ども、@kimihom です。 前回のインデックス貼り に続き、インデックス対応についての追記を記す。 外部キー のインデックスの効果 よく、関連する外部キーにインデックスをデフォルトで貼る書き方がある。 class CreateTweets &lt; ActiveRecord::Migration[5.0] def change create_table :articles do |t| t.string :text t.integer :user_id, index: true end end end ここでの user_id, index: true の箇所となる。さて、インデックスを貼ると、…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fbokukoko.hatenablog.com%2Fentry%2F2022%2F02%2F22%2F180938&quot; title=&quot;慣れないインデックス貼り vol.2 - ボクココ&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>https://cdn-ak.f.st-hatena.com/images/fotolife/c/cevid_cpp/20220222/20220222180904.jpg</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2022-02-22 18:09:38</published>
  <title>慣れないインデックス貼り vol.2</title>
  <type>rich</type>
  <url>https://bokukoko.hatenablog.com/entry/2022/02/22/180938</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
