Mirgation is not completing. Mysql2::Error: BLOB/TEXT column 'identity' used in key specification without a key length: CREATE INDEX `index_login_activities_on_identity` ON `login_activities` (`identity`)
liligga opened this issue · comments
Igor Grebennikov commented
Hello. So I have Mysql on board and I am using mysql2 gem,
ruby "2.3.4"
gem 'rails', '~> 5.1.5'
gem 'mysql2'
gem 'devise'
gem 'omniauth'
gem 'omniauth-twitter'
gem 'omniauth-facebook'
gem 'omniauth-vkontakte'
gem 'omniauth-google-oauth2'
gem 'omniauth-odnoklassniki'
gem "omniauth-yandex"
gem 'authtrail'
When trying to install this gem automatic migration is created and it throws
StandardError: An error has occurred, all later migrations canceled:
Mysql2::Error: BLOB/TEXT column 'identity' used in key specification without a key length: CREATE INDEX `index_login_activities_on_identity` ON `login_activities` (`identity`)
and thus I am left with a pending migration.
Andrew Kane commented
Hey @liligga, thanks for reporting 👍 This is fixed on master.