This content originally appeared on DEV Community and was authored by Alef ojeda de Oliveira
Hello guys !
sometimes I came across the need to change the application's database, because many times we start with a study project with Sqlite3 and then the project ends up getting bigger with another need and then we decided to change to another one like (PostgreSQL, MySQL, etc ...)!
So here's a nice little tip:
rails db:system:change --to=postgresql
rails db:system:change --to=mysql
rails db:system:change --to=sqlite3
rails db:system:change --to=oracle
rails db:system:change --to=frontbase
rails db:system:change --to=sqlserver
rails db:system:change --to=jdbc
**obs: only works from rails version 6 onwards
This content originally appeared on DEV Community and was authored by Alef ojeda de Oliveira
Alef ojeda de Oliveira | Sciencx (2021-11-08T17:56:04+00:00) How to change the database in a Rails application ?. Retrieved from https://www.scien.cx/2021/11/08/how-to-change-the-database-in-a-rails-application/
Please log in to upload a file.
There are no updates yet.
Click the Upload button above to add an update.