Hassan Schroeder wrote: > I'll disagree. In this case, requiring a valid user to be associated > with > an object *is* a business decision; tomorrow, I could decide to allow > anonymous object creation, or anonymous creation in some specific > circumstances only.
You just made my point quite nicely. In your case the association IS adding value to your model. I was referring to referential integrity that does not add business value to the application. As such it does not mandate test code at the application level, but integrity at the database level can still be important. -- Posted via http://www.ruby-forum.com/. -- 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 [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.

