<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>magicalhat</author_name>
  <author_url>https://blog.hatena.ne.jp/magicalhat/</author_url>
  <blog_title>はちゅにっき</blog_title>
  <blog_url>https://hatyuki.hatenablog.jp/</blog_url>
  <categories>
    <anon>Ruby</anon>
    <anon>PostgreSQL</anon>
  </categories>
  <description>つかい。。。たい？ そもそも bigint が本当に必要なのかを先に考えるべきじゃ。。。 とか思いつつも 「移行元の DB が bigint なんだよ」 というわけで、bigint を使うことに。 あれ？ところで (Rails とかで)、ActiveRecord 使って migration するとき、bigint ってどうやって指定するんだろう？ と疑問に思ったので、ソースコードを眺めてみたらあっさりとそれっぽい場所を発見。 active_record/connection_adapters/postgresql_adapter.rb 900行目付近 case limit when 1..2;…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fhatyuki.hatenablog.jp%2Fentry%2F20091117%2F1258451001&quot; title=&quot; ActiveRecord の Migration で bigint を - はちゅにっき&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>2009-11-17 18:43:21</published>
  <title> ActiveRecord の Migration で bigint を</title>
  <type>rich</type>
  <url>https://hatyuki.hatenablog.jp/entry/20091117/1258451001</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
