Sutto / slugged

Super simple slugs for ActiveRecord 3+, with slug history. Formerly known as Pseudocephalopod.
MIT License
86 stars 16 forks source link

Mysql2::Error: Specified key was too long; max key length is 1000 bytes... #7

Closed gavinlaking closed 13 years ago

gavinlaking commented 13 years ago

Attempting to run migrations on my server, rake db:migrate fails with the following error:

Mysql2::Error: Specified key was too long; max key length is 1000 bytes: CREATE INDEX index_slugs_on_scope_and_slug ON slugs (scope, slug)

Not sure if this is an issue with slugged, or the mysql2 gem, but thought it worth mentioning here for others. If I can be of further assistance, please let me know.

gavinlaking commented 13 years ago

Removing the indexes works, but if you have lots of slugs then this could be problematic.