<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>yoshiki_utakata</author_name>
  <author_url>https://blog.hatena.ne.jp/yoshiki_utakata/</author_url>
  <blog_title>猫でもわかるWeb開発・プログラミング</blog_title>
  <blog_url>https://www.utakata.work/</blog_url>
  <categories>
    <anon>Ruby on Rails</anon>
    <anon>Ruby</anon>
    <anon>プログラミング・開発</anon>
  </categories>
  <description>もくじ もくじ migrationのときにstring型のidを使いたいとき テーブル名を単数形にしたい場合 マイグレーション ActiveRecord migrationのときにstring型のidを使いたいとき Ruby on Rails で rails generate migration &lt;マイグレーションクラス名&gt; ってしたあとにファイルにテーブル定義を書いていく事を考えます。このとき、デフォルトのままだとint型でauto incrementかつprimary keyなidという属性が勝手に追加されますが、必ずしもそのようなidを使いたくない場合もあるでしょう。例えば、string…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fwww.utakata.work%2Fentry%2F20180816%2F1534383542&quot; title=&quot;Ruby on Rails 5 の ActiveRecordやmigration で id を string 型にしたいとき、テーブル名を複数形じゃなくて単数形にしたいとき - 猫でもわかるWeb開発・プログラミング&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://images-fe.ssl-images-amazon.com/images/I/41phIUacMgL._SL160_.jpg</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2018-08-16 10:39:02</published>
  <title>Ruby on Rails 5 の ActiveRecordやmigration で id を string 型にしたいとき、テーブル名を複数形じゃなくて単数形にしたいとき</title>
  <type>rich</type>
  <url>https://www.utakata.work/entry/20180816/1534383542</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
