<?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: Rails Devs for Data Integrity: How to gracefully handle database key violations</title>
	<atom:link href="http://www.snowgiraffe.com/tech/462/rails-devs-for-foreign-keys/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.snowgiraffe.com/tech/462/rails-devs-for-foreign-keys/</link>
	<description>rails, rubies, and sometimes dolphins</description>
	<lastBuildDate>Sun, 11 Oct 2009 01:02:09 -0700</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.5</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Ennuyer.net &#187; Blog Archive &#187; I am way behind on my rails link blogging. Link dump and reboot.</title>
		<link>http://www.snowgiraffe.com/tech/462/rails-devs-for-foreign-keys/comment-page-1/#comment-83</link>
		<dc:creator>Ennuyer.net &#187; Blog Archive &#187; I am way behind on my rails link blogging. Link dump and reboot.</dc:creator>
		<pubDate>Sat, 09 May 2009 10:42:19 +0000</pubDate>
		<guid isPermaLink="false">http://www.snowgiraffe.com/tech/?p=462#comment-83</guid>
		<description>[...]  Rails Devs for Data Integrity: How to gracefully handle database key violations &#124; Snow Giraffe Tech... [...]</description>
		<content:encoded><![CDATA[<p>[...]  Rails Devs for Data Integrity: How to gracefully handle database key violations | Snow Giraffe Tech&#8230; [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Another rails Blog &#124; Rails Devs for Data Integrity: How to gracefully handle database &#8230;</title>
		<link>http://www.snowgiraffe.com/tech/462/rails-devs-for-foreign-keys/comment-page-1/#comment-72</link>
		<dc:creator>Another rails Blog &#124; Rails Devs for Data Integrity: How to gracefully handle database &#8230;</dc:creator>
		<pubDate>Tue, 05 May 2009 14:27:17 +0000</pubDate>
		<guid isPermaLink="false">http://www.snowgiraffe.com/tech/?p=462#comment-72</guid>
		<description>[...] Rails Devs for Data Integrity: How to gracefully handle database &#8230;       internet advertising      internet advertising  I am a Rails Developer and I believe in data integrity. There I said it! And look, there are lots of people in the club. Jer on Rails had an awesome post in support for foreign keys a while back. &#8230;more on this&#8230; [...]</description>
		<content:encoded><![CDATA[<p>[...] Rails Devs for Data Integrity: How to gracefully handle database &#8230;       internet advertising      internet advertising  I am a Rails Developer and I believe in data integrity. There I said it! And look, there are lots of people in the club. Jer on Rails had an awesome post in support for foreign keys a while back. &#8230;more on this&#8230; [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Double Shot #439 &#171; A Fresh Cup</title>
		<link>http://www.snowgiraffe.com/tech/462/rails-devs-for-foreign-keys/comment-page-1/#comment-64</link>
		<dc:creator>Double Shot #439 &#171; A Fresh Cup</dc:creator>
		<pubDate>Mon, 27 Apr 2009 11:14:45 +0000</pubDate>
		<guid isPermaLink="false">http://www.snowgiraffe.com/tech/?p=462#comment-64</guid>
		<description>[...] Rails Devs for Data Integrity: How to gracefully handle database key violations Not every Rails developer ignores the database layer. [...]</description>
		<content:encoded><![CDATA[<p>[...] Rails Devs for Data Integrity: How to gracefully handle database key violations Not every Rails developer ignores the database layer. [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Michael Schuerig</title>
		<link>http://www.snowgiraffe.com/tech/462/rails-devs-for-foreign-keys/comment-page-1/#comment-63</link>
		<dc:creator>Michael Schuerig</dc:creator>
		<pubDate>Mon, 27 Apr 2009 01:24:42 +0000</pubDate>
		<guid isPermaLink="false">http://www.snowgiraffe.com/tech/?p=462#comment-63</guid>
		<description>I forgot to mention, there&#039;s yet another contender:

http://github.com/pedz/activerecord_constraints/tree/master</description>
		<content:encoded><![CDATA[<p>I forgot to mention, there&#8217;s yet another contender:</p>
<p><a href="http://github.com/pedz/activerecord_constraints/tree/master" rel="nofollow">http://github.com/pedz/activerecord_constraints/tree/master</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Michael Schuerig</title>
		<link>http://www.snowgiraffe.com/tech/462/rails-devs-for-foreign-keys/comment-page-1/#comment-62</link>
		<dc:creator>Michael Schuerig</dc:creator>
		<pubDate>Mon, 27 Apr 2009 01:22:34 +0000</pubDate>
		<guid isPermaLink="false">http://www.snowgiraffe.com/tech/?p=462#comment-62</guid>
		<description>As far as I remember, MySQL and SQLite include the columns in the message, PostgreSQL only includes the index name. I&#039;ll give it a try tomorrow and amend the patch.

If I see a good way to do it, I&#039;ll look into violated FK constraints, too.

BTW, are you using the redhill plugins with Rails 2.3.2? I&#039;ve been using them in the past, but I&#039;m a bit wary now as they apparently are no longer maintained. Anyway, I want to see this stuff in ActiveRecord, not in add-ons.</description>
		<content:encoded><![CDATA[<p>As far as I remember, MySQL and SQLite include the columns in the message, PostgreSQL only includes the index name. I&#8217;ll give it a try tomorrow and amend the patch.</p>
<p>If I see a good way to do it, I&#8217;ll look into violated FK constraints, too.</p>
<p>BTW, are you using the redhill plugins with Rails 2.3.2? I&#8217;ve been using them in the past, but I&#8217;m a bit wary now as they apparently are no longer maintained. Anyway, I want to see this stuff in ActiveRecord, not in add-ons.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: blythe</title>
		<link>http://www.snowgiraffe.com/tech/462/rails-devs-for-foreign-keys/comment-page-1/#comment-60</link>
		<dc:creator>blythe</dc:creator>
		<pubDate>Sun, 26 Apr 2009 17:43:35 +0000</pubDate>
		<guid isPermaLink="false">http://www.snowgiraffe.com/tech/?p=462#comment-60</guid>
		<description>Very cool Michael. Much better and (db agnostic) to let the adapters parse and figure out the exceptions. I&#039;ll modify this plugin to look for those exceptions if defined and if not fall back on the MySQL regexp. I was trying to pull out the key name on which the violation occurred. Is that pretty straightforward to do for all adapters? It would be awesome to have something like invalid_fk_exception.key_name. I found Unique keys are harder since it requires index lookups at least in MySQL.</description>
		<content:encoded><![CDATA[<p>Very cool Michael. Much better and (db agnostic) to let the adapters parse and figure out the exceptions. I&#8217;ll modify this plugin to look for those exceptions if defined and if not fall back on the MySQL regexp. I was trying to pull out the key name on which the violation occurred. Is that pretty straightforward to do for all adapters? It would be awesome to have something like invalid_fk_exception.key_name. I found Unique keys are harder since it requires index lookups at least in MySQL.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Michael Schuerig</title>
		<link>http://www.snowgiraffe.com/tech/462/rails-devs-for-foreign-keys/comment-page-1/#comment-59</link>
		<dc:creator>Michael Schuerig</dc:creator>
		<pubDate>Sun, 26 Apr 2009 12:21:26 +0000</pubDate>
		<guid isPermaLink="false">http://www.snowgiraffe.com/tech/?p=462#comment-59</guid>
		<description>In your plugin you&#039;re doing string matching against the exception message in order to find out if it signifies a uniqueness violation. If you prefer ActiveRecord to throw a suitable exception to begin with, please have a look at a patch that adds just that

https://rails.lighthouseapp.com/projects/8994/tickets/2419</description>
		<content:encoded><![CDATA[<p>In your plugin you&#8217;re doing string matching against the exception message in order to find out if it signifies a uniqueness violation. If you prefer ActiveRecord to throw a suitable exception to begin with, please have a look at a patch that adds just that</p>
<p><a href="https://rails.lighthouseapp.com/projects/8994/tickets/2419" rel="nofollow">https://rails.lighthouseapp.com/projects/8994/tickets/2419</a></p>
]]></content:encoded>
	</item>
</channel>
</rss>
