I have a question that I can not see how to resolve.
I have to run a stock program in Ruby on Rails that contains some hardware, which will contain some insights.
For example, I will have computers, printers, phones, among others, each with its table, as it contains unique elements each.
So I would need to create a 1-to-N relationship in Ruby on Rails, because a computer might have N inquiries, but a printer might also contain N inquiries, the phone, and all other hardware.
So the question is, do I have to reference all the tables in the creation of the inquiry, but just fill in the one I would use? for example:
Rails g scaffold Inquiry description: string data: date computer: reference printer: reference telephone: reference
I do not think so, but I can not figure out which one would be right.