<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>letitride</author_name>
  <author_url>https://blog.hatena.ne.jp/letitride/</author_url>
  <blog_title>追憶行</blog_title>
  <blog_url>https://www.letitride.jp/</blog_url>
  <categories>
    <anon>テック</anon>
    <anon>テック-その他</anon>
  </categories>
  <description>作業メモ。 TEXT型からINT型に変換したい時はchange_columnしようとしても精度が合わず失敗する場合がある。 Caused by: PG::DatatypeMismatch: ERROR: 列&quot;typo_column&quot;は型bigintには自動的に型変換できません HINT: 必要に応じて&quot;USING typo_column::bigint&quot;を追加してください。 DROPしてADDするのが手取り早い。 メソッドはdrop_columnではなく、remove_columnなので注意。 class ChangeTypoColumnToFooTable &lt; ActiveRecord::M…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fwww.letitride.jp%2Fentry%2F2019%2F07%2F16%2F145707&quot; title=&quot;Rails カラムの削除と追加 - 追憶行&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>2019-07-16 14:57:07</published>
  <title>Rails カラムの削除と追加</title>
  <type>rich</type>
  <url>https://www.letitride.jp/entry/2019/07/16/145707</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
