<?xml version="1.0" encoding="UTF-8"?>
<article>
  <body>Rails-2.0&#20197;&#38477;&#12395;&#36861;&#21152;&#12373;&#12428;&#12383;migration&#12398;&#35352;&#27861;&#12395;&#12388;&#12356;&#12390;&#12414;&#12392;&#12417;&#12390;&#12362;&#12365;&#12414;&#12377;&#12290;

 1. `t.&lt;data_type&gt;` &#12392;&#12356;&#12358;&#26360;&#12365;&#26041;&#12364;&#21487;&#33021;&#12395;&#12394;&#12387;&#12383;&#12290;
     `t.string :foo, :bar, :baz` &#12398;&#12424;&#12358;&#12395;&#20341;&#35352;&#12418;OK
 1. `t.timestamps` created_at, updated_at&#12434;&#36861;&#21152;
 1. `t.references :foo` &#12391; `foo_id` &#12434;&#36861;&#21152;&#12290;`:polymorphic =&gt; true`
       &#12458;&#12503;&#12471;&#12519;&#12531;&#12434;&#12388;&#12369;&#12427;&#12392;&#12289;`foo_type`&#12459;&#12521;&#12512;&#12418;&#36861;&#21152;&#12373;&#12428;&#12427;&#12290;
</body>
  <cached-tag-list>rails memo</cached-tag-list>
  <comments-count type="integer">0</comments-count>
  <created-at type="datetime">2008-06-17T11:18:01+00:00</created-at>
  <daily-archive-id type="integer">614</daily-archive-id>
  <filter-type>blue_stole</filter-type>
  <id type="integer">622</id>
  <monthly-archive-id type="integer">60</monthly-archive-id>
  <pdf-digest nil="true"></pdf-digest>
  <permalink>/articles/622</permalink>
  <published-at type="datetime">2008-06-17T11:11:00+00:00</published-at>
  <secret>079c1241-0983-4c6a-8907-15069e6c0ff0</secret>
  <title>Rails-2.0&#12363;&#12425;&#36861;&#21152;&#12373;&#12428;&#12383;migration&#12398;&#35352;&#27861;</title>
  <updated-at type="datetime">2008-10-22T20:09:38+00:00</updated-at>
  <user-id type="integer">1</user-id>
</article>
