Ruby on Rails Thursday, September 30, 2010

Ive got 3 types of media. Event, photo and video.

Most of these share common columns (title, description, etc). I am
thinking of creating a 4th model called media. And then event, photo
and video will inherit from media, making media an STI.

Is this a good approach?
I am worried that since all submissions are going into one table (the
media table). Some db performance issues may arise?

What are your thoughts?

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

No comments:

Post a Comment