Databases
Replacing SQLite
Instructions
Switching to another SQL-based database is easy, and the following instructions show you how to switch to MySQL or Postgres in five simple steps.
MySQL
- Replace
adapter: sqlite
withadapter: mysql2
in your config/database.yml file. - Replace
gem 'sqlite*'
withgem 'mysql2'
in your Gemfile. - Run
bundle install
. - Commit and check changes in.
- Rebuild your application.
Postgres
- Replace
adapter: sqlite
withadapter: postgresql
in your config/database.yml file. - Replace
gem 'sqlite*'
withgem 'pg'
in your Gemfile. - Run
bundle install
. - Commit and check changes in.
- Rebuild your application.
More information about databases supported by Cloud 66.