<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>willnet</author_name>
  <author_url>https://blog.hatena.ne.jp/willnet/</author_url>
  <blog_title>おもしろwebサービス開発日記</blog_title>
  <blog_url>https://blog.willnet.in/</blog_url>
  <categories>
    <anon>rails</anon>
  </categories>
  <description>これまで、modelと一緒に自動生成されるもの以外の、カラムを追加する類いのマイグレーションファイルは手書きしていたんだけれど、どうやらrails2.0以降はこれも自動化できるみたい。というわけでやり方をメモ。 追加するとき 例 こんな風に書くと script/generate migration AddEmailAndDeletedToUsers email:string deleted:boolean こんなファイルが出来る。 class AddEmailAndDeletedToUsers &lt; ActiveRecord::Migration def self.up add_column :…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fblog.willnet.in%2Fentry%2F20080822%2F1219412456&quot; title=&quot;カラムを追加／削除するマイグレーションファイルを自動生成 - おもしろ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>http://ecx.images-amazon.com/images/I/41qXc1dvs-L.jpg</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2008-08-22 22:40:56</published>
  <title>カラムを追加／削除するマイグレーションファイルを自動生成</title>
  <type>rich</type>
  <url>https://blog.willnet.in/entry/20080822/1219412456</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
