#151 ✓resolved

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

Please Sign in or create a free account to add a new ticket.

With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.

New-ticket Create new ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile ยป

Shared Ticket Bins

People watching this ticket