# Dumping 12,000+ records into seeds.rb?

**URL:** <https://www.ruby-forum.com/t/dumping-12-000-records-into-seeds-rb/187834>\
**Category:** Rails\
**Created:** [April 30, 2010, 2:49am UTC](https://www.ruby-forum.com/t/dumping-12-000-records-into-seeds-rb/187834 "2010-04-30T02:49:52Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Phoenix\_R](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/p/5e9695/32.png) [@Phoenix\_R](https://www.ruby-forum.com/u/Phoenix_R)\
**Post date:** [April 30, 2010, 2:49am UTC](https://www.ruby-forum.com/t/dumping-12-000-records-into-seeds-rb/187834/1 "2010-04-30T02:49:52Z")

</div>

I have a legacy e-commerce app that’s got about 12,000 inventory items  
in it, including pairings between items in one model to items in  
another. There’s no way we’ll have the manpower to manually add all  
those items and their pairings again (“ah cannah dew ih, cap’n!”), so  
I’m hoping to write a series of either Ruby or raw SQL scripts to move  
the data from my legacy DB to my current development DB, then run  
something that will dump all the information in my new development DB  
(once properly re-formatted for use in the new data schema) straight  
into seeds.rb so I can just load the schema and seed it upon  
deployment.

Does anyone know of an existing tool that’ll help get the job done?  
Thanks!

---

<div class="post-metadata">

**Author:** ![Phoenix\_R](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/p/5e9695/32.png) [@Phoenix\_R](https://www.ruby-forum.com/u/Phoenix_R)\
**Post date:** [April 30, 2010, 8:01pm UTC](https://www.ruby-forum.com/t/dumping-12-000-records-into-seeds-rb/187834/2 "2010-04-30T20:01:09Z")

</div>

Hi  
Try this

> **[GitHub - mbleigh/seed-fu: Advanced seed data handling for Rails, combining...](https://github.com/mbleigh/seed-fu)**
>
> Advanced seed data handling for Rails, combining the best practices of several methods together. - GitHub - mbleigh/seed-fu: Advanced seed data handling for Rails, combining the best practices of s...

```
  It can read from csv. That may help you

```

Sijo
