# Migration Help

**URL:** <https://www.ruby-forum.com/t/migration-help/185026>\
**Category:** Rails\
**Created:** [March 12, 2010, 12:26am UTC](https://www.ruby-forum.com/t/migration-help/185026 "2010-03-12T00:26:15Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Sumeet\_P](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/8e8cbc/32.png) [@Sumeet\_P](https://www.ruby-forum.com/u/Sumeet_P)\
**Post date:** [March 12, 2010, 12:26am UTC](https://www.ruby-forum.com/t/migration-help/185026/1 "2010-03-12T00:26:15Z")

</div>

Hi,

I need to create a migration that will populate data in my table.

Table is like  
Column table  
(id, column\_name, fa\_module\_id)

column\_name stores column name of the tables existing in our database

for example I have a table  
Customer(id, first\_name, last\_name, age)

then each row of Columns table can be used to store a single column  
information for the customer module

one row can be  
(id = 1, column\_name = “first\_name”, module\_id(f.k.)

Now I have to write a migration to automatically populate all the  
column name for the excisting tables in our database  
in rows of column table.  
Please help!

Thanks and regards  
Sumeet
