I am creating a new web application (tracks 3 beta), from which this piece is a legacy mysql database The current PHP application is using.
I do not want to modify the legacy DB schema, I just want to be able to read / write it, as well as the Rail app to use ActivereCord for my database new stuff. For the railway app I'm using mysql, so I have the adapter installed.
What is the best way to do this? For example, I want to get in touch with the old database. Should I make contact controller, and manually call SQL to get the variable for the view? Or should I make a contact model and define the attributes that match the field in the database, and I contact it to contact mailboxes from contacts "WHERE id = Contact.id" to call I am able to use like mail_resource.
Sorry, I have not done a lot in tracks outside of standard stuff which is well documented. I'm not sure what the best way would be, ideally, I want to present my Rail application as originally possible to the contacts so that I can display them properly for API access.
Any suggestions and code examples will be highly appreciated
How dependent is its legacy DB, it affects the solution greatly if your heritage DB is similar to rail conventions then using some adaptive models will probably prove to be the best approach though I heard about those people Who wrote a script that Continuous legacy transforms data from DB to new DB - the entire structure of DB was so wrong that the value of the approach was.
Comments
Post a Comment