When I use unicode, the migration fails and I get told that the index
is too long and can only be 1000 bytes. I switched over to ascii to
see if I get the same problem and I didn't. I really want to use
unicode, so I want to get this working.
When I use unicode, the migration fails and I get told that the index
is too long and can only be 1000 bytes. I switched over to ascii to
see if I get the same problem and I didn't. I really want to use
unicode, so I want to get this working.
If you want to limit the length of the prefix used for indexes, you'll
need to change name/surname up there for the string columns you want
to index (ie taggable_type and context) and change the numbers as
appropriate to your data
How can I use the :limit to change taggable_ type and context?
The limit tells mysql how much of the column to use for the index.
Pick values such that your total index length falls within the limit
(you're probably better off picking a smaller value for taggable_type,
you're very unlikely to have massively long values in that column)