gitlab 10.4.2 -> 10.5 migration fails

== 20180119135717 AddUploaderIndexToUploads: migrating ========================
-- transaction_open?()
   -> 0.0000s
-- remove_index(:uploads, {:column=>:path})
   -> 0.2690s
-- transaction_open?()
   -> 0.0000s
-- add_index(:uploads, [:uploader, :path], {:using=>:btree})
rake aborted!
StandardError: An error has occurred, all later migrations canceled:

Mysql2::Error: Specified key was too long; max key length is 767 bytes: CREATE  INDEX `index_uploads_on_uploader_and_path` USING btree ON `uploads` (`uploader`, `path`)

Also had the issue mentioned in https://gitlab.com/gitlab-org/gitlab-ce/issues/43514 but was able to work past it with the steps there.