New Discussion

Notifications

You’re not receiving notifications from this thread.

Connect Rails Application to already existing MySql Database

1
Databases
Hi there, I am new to Rails and really enjoying it. 
I am converting my php application to a ROR application. The app is using a MySql DB, so I want to connect the ROR application with that already created DB and want to preserve the data. php has mysqli functions, does ROR has anything similar to that ?

Help appreciated. Warm Regards.
Depending on wether you want to keep running the PHP app. If you don't, read into ActiveRecord, create your models and then write a few migrations to make sure the columns and indexes do match the naming conventions in Rails.
Join the discussion
Create an account Log in

Learning Ruby on Rails? Join our newsletter.

We won't send you spam. Unsubscribe at any time.