環境
□OS:Windows10 home
※bash on ubuntu on windows
□旧DB:SQLite
□新DB:Mysql5.7
手順
①Gemfileの編集
GemfileにMysql2を追加する
gem 'mysql2'
②データベースの設定ファイルを編集する
database.yml
adapter: mysql2
encoding: utf8
database: TWINS_COM
pool: 5
username: root
password:
host: localhost
③bundle installを実行
$ bundle install
④データベース作成
$ bundle exec rake db:create
$ bundle exec rake db:migrate
これで変わった。