It is not clear to me whether you need to access the data in the
existing database from within a rails app, keeping the existing db
format, or whether you are trying to do a one time extraction of the
data from the existing database into a new one which is in
conventional rails format. ( You said you cannot change the existing
db, but you also said you must use the rails format in the db).

Colin

2009/6/8 Arnaud Geo <[email protected]>:
>
> Hi,
>
> I'm actually coding an application which use data from an other one.
> (Zone > Region > Country > Location exactly) which are not in the best
> form. There are primary keys defined on the names of the zone / region /
> ... and link between tables with foreign keys using the primary keys of
> the parrent table (logical)
>
> I must use this data but I must use the Rails format in the database
> (foreign keys on id)
> I can't modify the other database / application.
>
> Do you have an idea how to realize that ?
>
>
> PS: sorry for my poor english :s
> --
> Posted via http://www.ruby-forum.com/.
>
> >
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to