<?xml version="1.0" encoding="UTF-8"?><!-- generator="wordpress/2.1.3" -->
<rss version="2.0" 
	xmlns:content="http://purl.org/rss/1.0/modules/content/">
<channel>
	<title>Comments on: What happens when a migration fails</title>
	<link>http://www.rebeccablyth.co.uk/2007/08/03/what-happens-when-a-migration-fails/</link>
	<description></description>
	<pubDate>Sun, 01 Aug 2010 08:41:45 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.1.3</generator>

	<item>
		<title>By: ynw</title>
		<link>http://www.rebeccablyth.co.uk/2007/08/03/what-happens-when-a-migration-fails/#comment-18</link>
		<author>ynw</author>
		<pubDate>Sat, 25 Aug 2007 23:15:43 +0000</pubDate>
		<guid>http://www.rebeccablyth.co.uk/2007/08/03/what-happens-when-a-migration-fails/#comment-18</guid>
					<description>This is probably the most annoyng migration behaviour along with add_column not... reloading columns.</description>
		<content:encoded><![CDATA[<p>This is probably the most annoyng migration behaviour along with add_column not&#8230; reloading columns.</p>
]]></content:encoded>
				</item>
	<item>
		<title>By: Rebecca</title>
		<link>http://www.rebeccablyth.co.uk/2007/08/03/what-happens-when-a-migration-fails/#comment-19</link>
		<author>Rebecca</author>
		<pubDate>Tue, 28 Aug 2007 11:30:09 +0000</pubDate>
		<guid>http://www.rebeccablyth.co.uk/2007/08/03/what-happens-when-a-migration-fails/#comment-19</guid>
					<description>@ynw:

Actually, it appears that add_column ... &lt;em&gt;does&lt;/em&gt; reload column information - when you're using the development environment. It doesn't do this in the production environment, though, and if you try to update your new columns using Model.update_attributes you don't get any messages anywhere to tell you that nothing's been updated. It all appears to have worked fine.

Personally, I think this behaviour's even worse than the original - when you develop the migration, it all works, and when you run it in production, it appears to have worked, but hasn't actually worked!</description>
		<content:encoded><![CDATA[<p>@ynw:</p>
<p>Actually, it appears that add_column &#8230; <em>does</em> reload column information - when you&#8217;re using the development environment. It doesn&#8217;t do this in the production environment, though, and if you try to update your new columns using Model.update_attributes you don&#8217;t get any messages anywhere to tell you that nothing&#8217;s been updated. It all appears to have worked fine.</p>
<p>Personally, I think this behaviour&#8217;s even worse than the original - when you develop the migration, it all works, and when you run it in production, it appears to have worked, but hasn&#8217;t actually worked!</p>
]]></content:encoded>
				</item>
</channel>
</rss>
