Replicate with different tables/fields names

Hi everyone.

I have a project that I have the arduous task of doing a replication system from a database with headquarters units. I tested and works very well with Rubyrep if the databases are identical. But the problem I'm facing and I need a help from friends is that headquarters, the names of tables and some fields are different the names of the units, but all data stored have the same content. Is there a way to identify each table / field units with the seat to make changes when they occur? Please help me.

Thanks in advance and I'm waiting.

André Martins Geniart Tecnology www.geniart.com.br