Sunday, October 17, 2010

[Rails] Re: Should we seprate models into sub directories

"蕲春人" <whyruby@gmail.com> wrote in post #954903:
> Should we seprate models into sub directories by domain?For example
> message:
> app/models/message/message.rb
> app/models/message/message_template.rb
> app/models/message/message_type.rb
> app/models/message/black_list.rb
>
> have 100+ tables.

It's sometimes useful to namespace models. But if you have 100 tables,
you might want to review your DB schema. Sometimes it is necessary to
have that many tables, but often it is not.

Best,
--
Marnen Laibow-Koser
http://www.marnen.org
marnen@marnen.org

--
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 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.

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate