I am trying to use the acts_as_taggable_gem but I am having issues with the migration.
in the automatically generated ActsAsTaggableOnMigration file I am getting the following error
Mysql2::Error: Specified key was too long; max key length is 767 bytes: CREATE INDEX 'index_taggings_on_taggable_id_and_taggable_type_and_context' ON 'taggings' ('taggable_id', 'taggable_type', 'context')
on the line add_index :taggings, [:taggable_id, :taggable_type, :context]
I have used the gem on another project successfully in the past. The only difference is this time the database charset is utf8mb4
, This is a requirement to support emojis.
I have tried reducing the :limit
(default is 128) on the :context
to no avail