Hey Everyone,
I am updating a gemfile so it uses mysql rather than sqllite or progres. Would someone advise me to what I need to swap out in the gemfile so this happens flawlessly?
Thank you
Hey Everyone,
I am updating a gemfile so it uses mysql rather than sqllite or progres. Would someone advise me to what I need to swap out in the gemfile so this happens flawlessly?
Thank you
Hey Everyone,
I am updating a gemfile so it uses mysql rather than sqllite or progres. Would someone advise me to what I need to swap out in the gemfile so this happens flawlessly?
One of the easiest ways to figure this out is to use the Rails generator to make a new "stunt" app with the -d or --database option specified to whichever database gem you would use:
rails new stunt_app -d mysql
And then look at the Gemfile and the config/database.yml files to see the major differences.
rails new stunt_app_2 -d sqlite3
Do the same thing with the database gem you are currently using so you can diff the directories, just give it a slightly different app name. You can delete the apps when you're done. You can get a list of available options by issuing the command rails new --help and scrolling down to -d.
Walter
Thank you Walter. I appreciate your help.