<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:atom="http://www.w3.org/2005/Atom" version="2.0">
  <channel>
    <title>Recent Posts in 'Add Data with add_test_data' | Pragmatic Forums</title>
    <link>http://forums.pragprog.com/forums/22/topics/224</link>
    <language>en-us</language>
    <ttl>60</ttl>
    <description></description>
    <item>
      <title>Add Data with add_test_data posted by Adam Sims @ Wed, 30 Jul 2008 08:00:16 -0000</title>
      <description>&lt;p&gt;I had the same problem with migrating the add_test_data, lucekly,  rolling back the version as suggested by Simon worked for me.&lt;/p&gt;


	&lt;blockquote&gt;
		&lt;p&gt;rake db:migrate version=2&lt;br /&gt;rake db:migrate&lt;/p&gt;
	&lt;/blockquote&gt;</description>
      <pubDate>Wed, 30 Jul 2008 08:00:16 -0000</pubDate>
      <guid isPermaLink="false">forums.pragprog.com:22:224:3839</guid>
      <author>Adam Sims</author>
      <link>http://forums.pragprog.com/forums/22/topics/224</link>
    </item>
    <item>
      <title>Add Data with add_test_data posted by will darrah @ Sun, 02 Mar 2008 15:42:17 -0000</title>
      <description>&lt;p&gt;Simon if rolling back did not work check that your app/model/product.rb is not causing the data to be refuted. Specifically the pasted data is all .jpg, did you filter for .jpeg?&lt;/p&gt;</description>
      <pubDate>Sun, 02 Mar 2008 15:42:17 -0000</pubDate>
      <guid isPermaLink="false">forums.pragprog.com:22:224:2357</guid>
      <author>will darrah</author>
      <link>http://forums.pragprog.com/forums/22/topics/224</link>
    </item>
    <item>
      <title>Add Data with add_test_data posted by Simon Krollpfeifer @ Sat, 02 Feb 2008 17:02:24 -0000</title>
      <description>&lt;p&gt;I figured it out thanks to a friend. The issue was the migrate version of the program. If RonR thinks, that you&amp;#8217;re up to date, it does nothing.&lt;br /&gt;So I just have to downgrade the migration version by one and migrate again.&lt;br /&gt;bulletproof version: &lt;br /&gt;&lt;pre&gt;&lt;code&gt;
rake db:mirgrate VERSION=0
rake db:migrate
&lt;/pre&gt;&lt;/code&gt;&lt;/p&gt;</description>
      <pubDate>Sat, 02 Feb 2008 17:02:24 -0000</pubDate>
      <guid isPermaLink="false">forums.pragprog.com:22:224:2255</guid>
      <author>Simon Krollpfeifer</author>
      <link>http://forums.pragprog.com/forums/22/topics/224</link>
    </item>
    <item>
      <title>Add Data with add_test_data posted by Mike Fenton @ Thu, 31 Jan 2008 22:58:51 -0000</title>
      <description>&lt;p&gt;I had exactly the same problem &amp;#8211; solved it by deleted the schema and products tables from MySQL and then issuing &lt;pre&gt;rake db:migrate&lt;/pre&gt;&lt;/p&gt;


	&lt;p&gt;Not sure why this worked (the schema table had the right version number in it).&lt;/p&gt;


	&lt;p&gt;Hope this help.&lt;/p&gt;</description>
      <pubDate>Thu, 31 Jan 2008 22:58:51 -0000</pubDate>
      <guid isPermaLink="false">forums.pragprog.com:22:224:2249</guid>
      <author>Mike Fenton</author>
      <link>http://forums.pragprog.com/forums/22/topics/224</link>
    </item>
    <item>
      <title>Add Data with add_test_data posted by Simon Krollpfeifer @ Fri, 18 Jan 2008 11:27:37 -0000</title>
      <description>&lt;p&gt;I have a huge problem loading data in the database. I downloaded the file&lt;br /&gt;add_test_data.rb from the code section, and created the file in my depot folder using&lt;br /&gt;&lt;pre&gt;&lt;code&gt;ruby script/generate migration add_test_data&lt;/code&gt;&lt;/pre&gt;&lt;/p&gt;


	&lt;p&gt;After that I copied the content of the downloaded add_test_data into my newly created one.&lt;br /&gt;Everything is mentioned as in the book.&lt;br /&gt;After pasting everyting into 003_add_test_data I type&lt;br /&gt;&lt;pre&gt;&lt;code&gt;rake db:migrate&lt;/code&gt;&lt;/pre&gt;&lt;br /&gt;to load the data in the database. Nothing happens. I just get a normal&lt;br /&gt;&lt;pre&gt;&lt;code&gt;(in /Users/Simon/work/depot)&lt;/code&gt;&lt;/pre&gt;&lt;br /&gt;following by the prompt. &lt;br /&gt;I have no problem writing data via the browser to my database. So, what am I doing wrong here?&lt;/p&gt;


	&lt;p&gt;P.S. I am using rails 1.2.6&lt;/p&gt;</description>
      <pubDate>Fri, 18 Jan 2008 11:27:37 -0000</pubDate>
      <guid isPermaLink="false">forums.pragprog.com:22:224:2188</guid>
      <author>Simon Krollpfeifer</author>
      <link>http://forums.pragprog.com/forums/22/topics/224</link>
    </item>
  </channel>
</rss>
