charlotte-ruby/impressionist — Issue #15: Mysql2::Error: BLOB/TEXT column 'session_hash' used in key specification without a key length...
Author: andreydjason
Created: 2011-11-30 12:57:54+00:00
State: open

Hi, I'm using this awesome plugin, but I've encountered a little problem when doing the migration, the mysql2 gem returns:

Mysql2::Error: BLOB/TEXT column 'session_hash' used in key specification without a key length: CREATE INDEX `poly_session_index` ON `impressions` (`impressionable_type`, `impressionable_id`, `session_hash`)

I've found a stackoverflow with an anwser about this error: http://stackoverflow.com/questions/1827063/mysql-error-key-specification-without-a-key-length

I'm already dont know how can I fix this whitout creating other problems when using this plugin. This error was ocurred to anyone else, or just me ?

Thanks in advance.

Ruby 1.9.2p290
Rails 3.1.1
Linux Mint (Ubuntu) 11.10
MySQL2 gem