# I need help migrating an old table

**URL:** <https://www.ruby-forum.com/t/i-need-help-migrating-an-old-table/100459>\
**Category:** Rails\
**Created:** [July 29, 2006, 1:51am UTC](https://www.ruby-forum.com/t/i-need-help-migrating-an-old-table/100459 "2006-07-29T01:51:14Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![tladuke](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/t/df788c/32.png) [@tladuke](https://www.ruby-forum.com/u/tladuke)\
**Post date:** [July 29, 2006, 1:51am UTC](https://www.ruby-forum.com/t/i-need-help-migrating-an-old-table/100459/1 "2006-07-29T01:51:14Z")

</div>

i have this big table that has columns:  
partnumber, 1piece-price-break, 10K-piece-price-break, 25k, etc…

i want to split this into two tables:  
part\_number, id

and

price\_break, price, product\_id

so that, you know, the price-break columns are not stuck at fixed  
values; different parts can have differnt numbers of price-breaks, etc

is there a ruby way to do this?  
i have navicat, but i can’t think of a way to keep everything straight  
with it.

thanks,  
travis
