> On Feb 18, 2019, at 2:02 PM, brainiacsys5@gmail.com wrote:
>
> 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
>
> --
> You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscribe@googlegroups.com.
> To post to this group, send email to rubyonrails-talk@googlegroups.com.
> To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/df136466-6070-4177-b180-9d69e854b484%40googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscribe@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/A6514C57-E4DA-4E92-BFFD-9F2D6742788E%40wdstudio.com.
For more options, visit https://groups.google.com/d/optout.
No comments:
Post a Comment