is there a way to save multiple records with attachements at once without calling insert each time

后端 未结 0 1588
庸人自扰
庸人自扰 2021-01-24 02:54

I have some files that I need to save to the database, and every file should be attached to a instance of an ActiveRecord like so:

pdf_files.each do          


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题