Apr 9, 2017
0
Level 1
Polymorphic relation
I have to cope with Questions that can have 3 responses type MCQ, Scale, freetext I have created 4 tables: questions (with a response_type field), mcqs, scales, freetexts.
So one Question model has one and only one corresponding model in one of the 3 response type tables Do you think I can modelize this with Polymorphic relations ?
Please or to participate in this conversation.