<?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>
    <anon>MySQL</anon>
  </categories>
  <description>RailsのMigrationで:binaryとするとMySQLではblob型になる。 create_table :files do |t| t.column :data, :binary end MySQLでのblob型 型 サイズ TINYBLOB 256byte BLOB 64KB MEDIUMBLOB 16MB LONGBLOB 4GB Migrationでは:binaryしか選択肢がなくMySQLだとblob型として解釈される。 画像ファイルならば普通に大丈夫だけど他のファイルも扱うと苦しい。SQLで直に属性を定義することでこの問題は解消する class AlterModifyLon…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fchulip.org%2Fentry%2F20090806%2F1249523112&quot; title=&quot;Rails + MySQLでのblob型の扱い - 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>2009-08-06 10:45:12</published>
  <title>Rails + MySQLでのblob型の扱い</title>
  <type>rich</type>
  <url>https://chulip.org/entry/20090806/1249523112</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
