<?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"
	>
<channel>
	<title>Comments on: Checking for Model Classes Before Using Them in Rails Migrations</title>
	<atom:link href="http://www.peterkrantz.com/2007/models-in-migrations-tip/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.peterkrantz.com/2007/models-in-migrations-tip/</link>
	<description>A blog about technology, visualization, music and unmanned vehicle experiments</description>
	<pubDate>Sat, 06 Sep 2008 01:39:31 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.6.1</generator>
		<item>
		<title>By: Aleksey Gureiev</title>
		<link>http://www.peterkrantz.com/2007/models-in-migrations-tip/#comment-2180</link>
		<dc:creator>Aleksey Gureiev</dc:creator>
		<pubDate>Thu, 24 Jan 2008 07:02:08 +0000</pubDate>
		<guid isPermaLink="false">http://www.peterkrantz.com/2007/models-in-migrations-tip/#comment-2180</guid>
		<description>Interesting topic you raised there. As far as I know though, the creators of Rails strongly suggest not using migrations to configure an empty database for an application -- use the generated schema.rb instead. This avoids any problems with moving through migration steps with non-existent models and, what's more important, works times faster.

Migrations are useful when there's an application running and you need to catch up with the development changes without losing any data. In this case you most probably won't face the problem with missing models.

Thanks for the articles. The one with the Hpricot buffer size is a real healer.</description>
		<content:encoded><![CDATA[<p>Interesting topic you raised there. As far as I know though, the creators of Rails strongly suggest not using migrations to configure an empty database for an application &#8212; use the generated schema.rb instead. This avoids any problems with moving through migration steps with non-existent models and, what&#8217;s more important, works times faster.</p>
<p>Migrations are useful when there&#8217;s an application running and you need to catch up with the development changes without losing any data. In this case you most probably won&#8217;t face the problem with missing models.</p>
<p>Thanks for the articles. The one with the Hpricot buffer size is a real healer.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Pete</title>
		<link>http://www.peterkrantz.com/2007/models-in-migrations-tip/#comment-1963</link>
		<dc:creator>Pete</dc:creator>
		<pubDate>Thu, 07 Jun 2007 15:16:39 +0000</pubDate>
		<guid isPermaLink="false">http://www.peterkrantz.com/2007/models-in-migrations-tip/#comment-1963</guid>
		<description>Akita: Migrations run in order but if you use model classes a migration may depend on a specific version of the code tree. When I wanted to set up a new development environment I got the latest source code. The latest source code didn't include the County model (it had been scrapped earlier). The tables were created properly in migration 009, County inserts in 010 and the data and table were removed in migration 015.</description>
		<content:encoded><![CDATA[<p>Akita: Migrations run in order but if you use model classes a migration may depend on a specific version of the code tree. When I wanted to set up a new development environment I got the latest source code. The latest source code didn&#8217;t include the County model (it had been scrapped earlier). The tables were created properly in migration 009, County inserts in 010 and the data and table were removed in migration 015.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: AkitaOnRails</title>
		<link>http://www.peterkrantz.com/2007/models-in-migrations-tip/#comment-1962</link>
		<dc:creator>AkitaOnRails</dc:creator>
		<pubDate>Thu, 07 Jun 2007 13:50:27 +0000</pubDate>
		<guid isPermaLink="false">http://www.peterkrantz.com/2007/models-in-migrations-tip/#comment-1962</guid>
		<description>I understand this but wasn't Migrations supposed to run in order? I mean, even if the database is empty it means that in some point it will reach the creation of the Countries tables (say, in migration number 010) and this data loading would take place necessarily after that (say, in migration number 021). This checking would necessary if you want to run the migrations out of order, but this defies the whole purpose of the schema_info versioning control, doesn't it?</description>
		<content:encoded><![CDATA[<p>I understand this but wasn&#8217;t Migrations supposed to run in order? I mean, even if the database is empty it means that in some point it will reach the creation of the Countries tables (say, in migration number 010) and this data loading would take place necessarily after that (say, in migration number 021). This checking would necessary if you want to run the migrations out of order, but this defies the whole purpose of the schema_info versioning control, doesn&#8217;t it?</p>
]]></content:encoded>
	</item>
</channel>
</rss>
