Answer the question
In order to leave comments, you need to log in
How to import data from .xlsx to mysql join table using rails?
There is a label Items
structure
id | category_id | name | description | price | wall_th | size |
Items have links
has_many :item_gosts
has_many :gosts, through: :item_gosts
has_many :item_steel_marks
has_many :steel_marks, through: :item_steel_marks
Answer the question
In order to leave comments, you need to log in
In 4 hours, you can throw an ineffective but obvious script on the forehead: if some value points to another table, we look for it there, if not, we insert it. One way or another, we get the id of the record and paste it where necessary.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question