<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: How To Use Fixtures to Populate Your Database in Rails</title>
	<atom:link href="http://biodegradablegeek.com/2008/07/how-to-use-fixtures-to-populate-your-database-in-rails/feed/" rel="self" type="application/rss+xml" />
	<link>http://biodegradablegeek.com/2008/07/how-to-use-fixtures-to-populate-your-database-in-rails/</link>
	<description></description>
	<lastBuildDate>Wed, 24 Feb 2010 09:51:34 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=abc</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Jason Boxman</title>
		<link>http://biodegradablegeek.com/2008/07/how-to-use-fixtures-to-populate-your-database-in-rails/comment-page-1/#comment-240</link>
		<dc:creator>Jason Boxman</dc:creator>
		<pubDate>Thu, 21 Aug 2008 03:40:51 +0000</pubDate>
		<guid isPermaLink="false">http://biodegradablegeek.com/?p=121#comment-240</guid>
		<description>I have been using seed-fu plugin lately for handling data seeding and I&#039;ve found it to be a nice solution.  I was always uncomfortable with the idea of using my testing fixtures for seeding.  The best part, besides being able to key off a field (or fields) and change existing seed data attributes in production, is that it&#039;s all just Ruby inside, not YAML.</description>
		<content:encoded><![CDATA[<p>I have been using seed-fu plugin lately for handling data seeding and I&#8217;ve found it to be a nice solution.  I was always uncomfortable with the idea of using my testing fixtures for seeding.  The best part, besides being able to key off a field (or fields) and change existing seed data attributes in production, is that it&#8217;s all just Ruby inside, not YAML.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Vincent Dogradi</title>
		<link>http://biodegradablegeek.com/2008/07/how-to-use-fixtures-to-populate-your-database-in-rails/comment-page-1/#comment-239</link>
		<dc:creator>Vincent Dogradi</dc:creator>
		<pubDate>Thu, 31 Jul 2008 14:35:35 +0000</pubDate>
		<guid isPermaLink="false">http://biodegradablegeek.com/?p=121#comment-239</guid>
		<description>Using fixtures to populate default or initial database values may cause some problem due to the way the id are generated. In fact, the id seems to be generated by calculating a hash of the fixture name.

If you use this to populate a &quot;mutable&quot; table (like user table for instance), you will have your sequence of id beginning to a possible (random) high value. Say if you have 1 admin user loaded from fixture with id=283156471, then all users that will be added will have consecutive id beginning at 283156472.</description>
		<content:encoded><![CDATA[<p>Using fixtures to populate default or initial database values may cause some problem due to the way the id are generated. In fact, the id seems to be generated by calculating a hash of the fixture name.</p>
<p>If you use this to populate a &#8220;mutable&#8221; table (like user table for instance), you will have your sequence of id beginning to a possible (random) high value. Say if you have 1 admin user loaded from fixture with id=283156471, then all users that will be added will have consecutive id beginning at 283156472.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Isam</title>
		<link>http://biodegradablegeek.com/2008/07/how-to-use-fixtures-to-populate-your-database-in-rails/comment-page-1/#comment-238</link>
		<dc:creator>Isam</dc:creator>
		<pubDate>Mon, 28 Jul 2008 05:22:14 +0000</pubDate>
		<guid isPermaLink="false">http://biodegradablegeek.com/?p=121#comment-238</guid>
		<description>Hey Jamie,

rake db:fixtures:load is dropping the current records in your database (those created by the migrations) before adding its own data. This prevents duplicates from being added every time you run tests. You can keep the data in a fixture.</description>
		<content:encoded><![CDATA[<p>Hey Jamie,</p>
<p>rake db:fixtures:load is dropping the current records in your database (those created by the migrations) before adding its own data. This prevents duplicates from being added every time you run tests. You can keep the data in a fixture.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jamie</title>
		<link>http://biodegradablegeek.com/2008/07/how-to-use-fixtures-to-populate-your-database-in-rails/comment-page-1/#comment-237</link>
		<dc:creator>Jamie</dc:creator>
		<pubDate>Sat, 26 Jul 2008 03:03:01 +0000</pubDate>
		<guid isPermaLink="false">http://biodegradablegeek.com/?p=121#comment-237</guid>
		<description>So I&#039;ve got production data that I need in every instance of my app. The best example is a &quot;countries&quot; table for user selection. My take on this is to put that type of data directly in a migration. That way it lives in every instance and gets migrated appropriately.

My problem is that when I do a rake db:fixtures:load, it drops anything created in my migrations. :/ Am I doing it wrong?

J</description>
		<content:encoded><![CDATA[<p>So I&#8217;ve got production data that I need in every instance of my app. The best example is a &#8220;countries&#8221; table for user selection. My take on this is to put that type of data directly in a migration. That way it lives in every instance and gets migrated appropriately.</p>
<p>My problem is that when I do a rake db:fixtures:load, it drops anything created in my migrations. :/ Am I doing it wrong?</p>
<p>J</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jeff</title>
		<link>http://biodegradablegeek.com/2008/07/how-to-use-fixtures-to-populate-your-database-in-rails/comment-page-1/#comment-236</link>
		<dc:creator>Jeff</dc:creator>
		<pubDate>Fri, 11 Jul 2008 21:59:58 +0000</pubDate>
		<guid isPermaLink="false">http://biodegradablegeek.com/?p=121#comment-236</guid>
		<description>Just fyi, in Rails 2.1 you can also skip the manual database creation step by doing this:

rake db:create:all

This will create all of your local databases if they don&#039;t exist yet (i.e. only those databases in database.yml that use localhost or 127.0.0.1 as their host name).</description>
		<content:encoded><![CDATA[<p>Just fyi, in Rails 2.1 you can also skip the manual database creation step by doing this:</p>
<p>rake db:create:all</p>
<p>This will create all of your local databases if they don&#8217;t exist yet (i.e. only those databases in database.yml that use localhost or 127.0.0.1 as their host name).</p>
]]></content:encoded>
	</item>
</channel>
</rss>
