Topic: Methodology for Populating Database Initially
I have a series of XML files that contain data that I need to insert into my database and I'm wondering what the best method is to do this. From my research I've discovered I'm probably going to need to use Nokogiri to parse my xml file and from there I know I need to talk to my Model to add the data to my database. What I don't know is: with what file do I do this operation through?
Would this be something I create in the model file before I run my db:migrate command for all my models?