Forum: Ruby on Rails [BUG?] rake db:test:clone when index multi columns...

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
Kad K. (Guest)
on 2007-05-14 16:05
I tried to clone my DB  and got an error :  (Mysql 5 / Rails 1.2 / OS X)

rake aborted!
Mysql::Error: BLOB/TEXT column 'description' used in key specification
without a key length: CREATE  INDEX `title_description` ON propositions
(`title`, `description`)

but the index key length exists in my dev DB...

(from Mysql =>  title_description   INDEX   title   25   description
50)

seems to taken in account at all....

rake db:schema:dump
=>    add_index "propositions", ["title", "description"], :name =>
"title_description"
in the schema.rb

is it a bug ?
This topic is locked and can not be replied to.