auto_migrations does not accept the name and unique options
Reported by toulmean | November 8th, 2007 @ 03:06 PM
This instruction:
add_index "us_hits", ["user_id", "operatingsystem_id", "jdk_id", "product_id", "version_id", "nl_id"], :name => "user_id"
is failing, the name of the index is not user_id:
add_index("us_hits", ["user_id", "operatingsystem_id", "jdk_id", "product_id", "version_id", "nl_id"])
rake aborted!
Mysql::Error: Identifier name 'index_us_hits_on_user_id_and_operatingsystem_id_and_jdk_id_and_product_id_and_version_id_and_nl_id' is too long: CREATE INDEX `index_us_hits_on_user_id_and_operatingsystem_id_and_jdk_id_and_product_id_and_version_id_and_nl_id` ON us_hits (`user_id`, `operatingsystem_id`, `jdk_id`, `product_id`, `version_id`, `nl_id`)
Comments and changes to this ticket
-

toulmean November 8th, 2007 @ 03:08 PM
From my investigations, it looks like line 107 of the auto_migrations file is failing.
I will provide a fix for this tomorrow, unless someone feels up to the challenge ?
-
Chris Wanstrath November 8th, 2007 @ 03:12 PM
- → State changed from new to open
- → Assigned user changed from Chris Wanstrath to PJ Hyett
-

-
PJ Hyett November 9th, 2007 @ 10:12 AM
- → State changed from open to resolved
patch applied, thanks for making AM better.
Please Login or create a free account to add a new comment.
You can update this ticket by sending an email to from your email client. (help)
Create your profile
Help contribute to this project by taking a few moments to create your personal profile. Create your profile »
