[Ruby on Rails] DBのcollation設定

Railsでutf8_general_ciなど任意のcollationを使いたい。

Before:

default: &default
adapter: mysql2
encoding: utf8
pool: 5
username: hoge
password: piyo
host: localhost

After:

default: &default
adapter: mysql2
encoding: utf8
charset: utf8
collation: utf8_general_ci
pool: 5
username: hoge
password: piyo
host: localhost