Frederick Cheung: "why validate the inclusion at all ? I'd validate the presence of the
foo_id column and use a foreign key constraint to ensure that it can't
contain junk."

How you'd "use a foreign key constraint"? That is, how do you'd implement the code in order "to ensure that it can't contain junk"?

--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.

Search Discussions

Related Discussions

Discussion Navigation
viewthread | post
Discussion Overview
grouprubyonrails-talk @
categoriesrubyonrails
postedMar 19, '12 at 6:16p
activeMar 19, '12 at 6:16p
posts1
users1
websiterubyonrails.org
irc#RubyOnRails

1 user in discussion

Sergio Lapenna: 1 post

People

Translate

site design / logo © 2021 Grokbase