I'm working with rails 2.3.5 application, in witch I have this field
t.string "trip_cities", :limit => 256
And this index
add_index "bookings", ["trip_cities"], :name => "trip_cities"
When I try to execute:
bundle exec rake db:test:load
I receive this error Mysql::Error: Specified key was too long; max key length is 767 bytes: CREATE INDEX 'trip_cities' ON 'bookings' ('trip_cities')
and don't quite know how to resolve this.
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…