Change 'activerecord-mysql2-adapter' to 'mysql2' this couse troubles.