Seeding database from .XLS file

/ Published in: Ruby
Save to your folder(s)

I had a spreadsheet with a ton of data on it that I wanted in my seeds file. Using example columns in your database titled db_column1, db_column2, db_column3. Place your .xls file into your public folder and run 'gem install roo'

Report this snippet


RSS Icon Subscribe to comments

You need to login to post a comment.