RSSAmplifier

Max Chernyak · Jan 21, 2010

Multiple Table Inheritance With ActiveRecord

0
Sign in to vote or save

This site does not allow itself to be embedded. You can still read it on the original site — the toolbar below keeps your place in the directory.

Imagine writing an online shop with different types of products. Normally all products would have common attributes such as title and price . Some attributes will likely differ. Tee may have size such as S, M, or L, while a Pen could have an ink_color . It’s easy to see that Tee is a Product , and so is Pen . We are looking at an is_a relationship. When I program this type of relationship I…

Read on max.engineer

Comments

Nothing yet. Say the first thing.

    Sign in to join the conversation.