Migration Help

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

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs