<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/css" href="/stylesheets/rss.css"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:trackback="http://madskills.com/public/xml/rss/module/trackback/">
  <channel>
    <title>Talk Like A Duck: Tag referential_integrity</title>
    <link>http://talklikeaduck.denhaven2.com/articles/tag/referential_integrity</link>
    <language>en-us</language>
    <ttl>40</ttl>
    <description>In Ruby, it's not the dog, it's the tricks!</description>
    <item>
      <title>Active Record and Referential Integrity</title>
      <description>Josh Susser just posted a new Rails plugin &lt;a href="http://blog.hasmanythrough.com/2007/7/14/validate-your-existence"&gt;which adds a validates_existence_of method to ActiveRecord::Base.&lt;/a&gt;.  The idea is that beyond validates_presence_of, which simply checks that a foreign key field is non-nil, or validates_associated which &lt;strong&gt;validates&lt;/strong&gt; the model referenced by a foreign key, validate_existence ensures that the referenced model &lt;strong&gt;exists&lt;/strong&gt; in the database, no more no less.
&lt;p&gt;It&amp;#8217;s brand new, but it sure looks like a nice idea.&lt;/p&gt;</description>
      <pubDate>Sat, 14 Jul 2007 15:10:00 -0400</pubDate>
      <guid isPermaLink="false">urn:uuid:55d910e3-af16-4d61-9fbe-26a3c0ecba51</guid>
      <author>Rick DeNatale</author>
      <link>http://talklikeaduck.denhaven2.com/articles/2007/07/14/active-record-and-referential-integrity</link>
      <category>rails</category>
      <category>activerecord</category>
      <category>referential_integrity</category>
      <trackback:ping>http://talklikeaduck.denhaven2.com/articles/trackback/442</trackback:ping>
    </item>
  </channel>
</rss>
