I’m working on a rails application that will migrate user content. I need to take in database parameters via a form and use them to connect to the given database. What’s the best way to achieve this? I’ve attempted using Mysql.real_connect with no joy.
I’m working on a rails application that will migrate user content. I need to
Share
You can call
establish_connectionwith your new parameters and then useconnectionnormally.