0
Guys I have a question I can’t see what the way to solve.
I have to perform a stock program in Ruby on Rails that contain some equipment, which will contain some avergiguações.
For example, I will have computers, printers, telephones, among others, each with its own table, because it contains unique elements each one.
Then I would need to create a 1-to-N ratio in Ruby on Rails, because a computer can have N inquiries, but a printer can also contain N inquiries, the phone, and all other equipment.
So the question is, do I have to reference all the tables in the survey creation, but only fill in the one I would use? for example:
Rails g scaffold Inquiry Description:string date:date computer:Ference printer:Ference phone:Ference
I don’t think it’s like that but I can’t figure out what the right way would be.