Rails creating schema_migrations - Mysql2::Error: Specified key was too long
I am using Rails 3.2.6 and Mysql 6.0.9 (but I have exactly the same error on MySQL 5.2.25) When I create new database ( rake db:create ) and then when I try to load the schema ( rake schema:load ) I get this error: Mysql2::Error: Specified key was too long; max key length is 767 bytes: CREATE UNIQUE INDEX `unique_schema_migrations` ON `schema_migrations` (`version`) After hours and hours of research I found these solutions: 1. Change MySQL variable innodb_large_prefix to true (or ON) This didn't work. I tried it on my Linux server, my Mac and even on Windows - it just doesn't work. 2.