I have a brand new Rails app that I want to hook into an existing MySQL database to do some reading and writing. I've already edited my database.yml
file to connect to the new db. rails c
and rails s
don't throw errors which lead me to believe that the connection is valid.
I haven't created any models or migrations yet. I was wondering if there was an easy way to get the models I need into my Rails project.
I'm able to connect to the db with Sequel Pro if I need to export a backup or a schema. Or do I need to generate models and copy all of the column types and everything manually?
Thanks for your help.