<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>arcright</author_name>
  <author_url>https://blog.hatena.ne.jp/arcright/</author_url>
  <blog_title>chulip.org</blog_title>
  <blog_url>https://chulip.org/</blog_url>
  <categories>
    <anon>Rails</anon>
  </categories>
  <description>昔bigintを指定する際はintegerのlimitを5以上(8にすることが多かった)にしたり、主キーをbigintに変更するにはSQLを直接書いたり少々面倒だった記憶が残っているが、さすがに今はそんなことしていないだろうと思い調べた。結論を言えばこれだけでよくなった。bigintと素直に書けるようになった。 create_table :hoges, id: :bigint do |t| t.timestamps end 外部キー書く時はこんな感じ。 t.references :hoge, type: :bigint [asin:4774165166:detail]</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fchulip.org%2Fentry%2F2016%2F09%2F12%2F185945&quot; title=&quot;Rails+MySQLでPRIMARY KEYをbigintにする - chulip.org&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>2016-09-12 18:59:45</published>
  <title>Rails+MySQLでPRIMARY KEYをbigintにする</title>
  <type>rich</type>
  <url>https://chulip.org/entry/2016/09/12/185945</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
