<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>something learned comments on A Little Timesaver</title>
    <link>http://somethinglearned.com/</link>
    <language>en-us</language>
    <ttl>40</ttl>
    <description>something learned comments</description>
    <item>
      <title>"A Little Timesaver" by trevor</title>
      <description>&lt;p&gt;It seems to happen every single time I run &lt;code&gt;./script/generate model&lt;/code&gt;&lt;/p&gt;


	&lt;p&gt;I open the newly minted fixtures file and go &amp;#8220;damn, what are the database columns again?&amp;#8221;  And of course, even if I could accurately remember them, why should I have to type them all in by hand?&lt;/p&gt;


	&lt;p&gt;Well, no more.  ActiveRecord knows what the columns are so ActiveRecord can just darn-well tell me.&lt;/p&gt;


&lt;pre&gt;&lt;code&gt;
./script/runner "puts MyModel.new().to_yaml" \ 
   &amp;gt;&amp;gt; test/fixtures/my_model.yml
&lt;/code&gt;&lt;/pre&gt;

	&lt;p&gt;It gives me a lovely list of &lt;code&gt;attributes&lt;/code&gt; to play with.  Joy.&lt;/p&gt;

</description>
      <pubDate>Sat, 17 Sep 2005 00:04:42 EDT</pubDate>
      <guid>&lt;a href="/articles/2005/09/17/a-little-timesaver"&gt;A Little Timesaver&lt;/a&gt;</guid>
      <link>&lt;a href="/articles/2005/09/17/a-little-timesaver"&gt;A Little Timesaver&lt;/a&gt;</link>
    </item>
  </channel>
</rss>
