Should we seprate models into sub directories

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.

“蕲春人” [email protected] 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
[email protected]