Lets say I have 4 models, A, B, C, X
A contains A1,A2,...An (similarly B and C)
I have an object in X, say X1 which is related to an object from category either A, B or C.
I have a column in X's model as category.
How can I relate it to different models of A, B and C?
If this cannot be done with a single column, what is the best way to implement this?
Sorry for asking a basic question.
Thanks in advance :)