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
To unsubscribe from this group, send email to
For more options, visit this group at

Search Discussions

Related Discussions

Discussion Navigation
viewthread | post
Discussion Overview
grouprubyonrails-talk @
postedMar 19, '12 at 6:16p
activeMar 19, '12 at 6:16p

1 user in discussion

Sergio Lapenna: 1 post



site design / logo © 2021 Grokbase