[Rails] Design flaw with Fixtures?

Dudley Flanders
2006-01-07T15:14:47Z

On Jan 7, 2006, at 3:46 AM, Derek Haynes wrote:

> On a related note, something I''ve wondered about when defining
foreign
> key relationships in the database: should this even be done when we
> can ensure relationships using validation methods? It seems like this
> is a violation of DRY unless another application needs to directly
> interact with the database.

Check out http://www.loudthinking.com/arc/000516.html for DHH''s take on
this. If you''re only hitting the database from your Rails app,
there''s
really no reason to bother with foreign key constraints.

-dudley