[Rails] Duplicating Constraints
David Heinemeier Hansson
david at loudthinking.com
Thu Dec 2 09:14:51 GMT 2004
> Re-specifying constraints in ruby that are already specified in the
> database is code duplication.
Which is why my approach (and recommendation) is not to specify it in
the database, but only in Ruby code. I understand that this is
considered blasphemy among some database people, though.
And this advice only applies to an Application Database design -- not
Integration Databases. As do all of my opinions on the division between
database and object-model.
--
David Heinemeier Hansson,
http://www.basecamphq.com/ -- Web-based Project Management
http://www.rubyonrails.org/ -- Web-application framework for Ruby
http://macromates.com/ -- TextMate: Code and markup editor (OS X)
http://www.loudthinking.com/ -- Broadcasting Brain
More information about the Rails
mailing list