# Migration

**URL:** <https://www.ruby-forum.com/t/migration/150095>\
**Category:** Rails\
**Created:** [October 3, 2008, 5:46pm UTC](https://www.ruby-forum.com/t/migration/150095 "2008-10-03T17:46:50Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![ajitonrails](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/a4c791/32.png) [@ajitonrails](https://www.ruby-forum.com/u/ajitonrails)\
**Post date:** [October 3, 2008, 5:46pm UTC](https://www.ruby-forum.com/t/migration/150095/1 "2008-10-03T17:46:50Z")

</div>

hello All

I am trying to create a table using rails migrations. after creating  
the table i want to move data from one table to newly created table.  
everything seems to be working fine… only issue is speed of moving  
data.

Abc.find(:all).each do |a|

```
  xyz.new do |x|
          xyz.id = a.id
         xyz.save
  end

```

end

i have over 200,000 rows in my table… and it is very slow…

is there a better way to move data quickly?

Please advice…

Cheers

Ajit
