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. -- 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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
Marnen Laibow-Koser
2010-Oct-18 03:36 UTC
Re: Should we seprate models into sub directories
"蕲春人" <whyruby-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> 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-sbuyVjPbboAdnm+yROfE0A@public.gmane.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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org 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.