This project is archived and is in readonly mode.
add_index_with_key_lengths_in_mysql
Reported by jnsears | June 12th, 2008 @ 09:56 AM
This patch allows the use of specified key lengths when using add_index in a migration with mysql
# creates index with both key lengths equal to 8
add_index("people", ["memo", "name"], :key_length => 8)
# creates index with only memo key length set to 8
add_index("people", ["memo", "name"], :key_length => {"memo" => 8})
Comments and changes to this ticket
-
Pratik June 12th, 2008 @ 09:59 AM
- State changed from new to incomplete
The patch needs to test for generated sql as well.
Thanks.
-
jnsears June 12th, 2008 @ 10:03 AM
Sorry, but my first patch here. Mind pointing me to an example of this?
Thanks.
-
CancelProfileIsBroken August 3rd, 2009 @ 07:19 PM
- State changed from incomplete to duplicate
- Tag set to activerecord, enhancement, migrations, patch, tested
Duplicate of #1852, which is more complete & actively being pursued
-
af001 May 5th, 2011 @ 03:00 AM
- Importance changed from to
Create your profile
Help contribute to this project by taking a few moments to create your personal profile. Create your profile »
<h2 style="font-size: 14px">Tickets have moved to Github</h2>
The new ticket tracker is available at <a href="https://github.com/rails/rails/issues">https://github.com/rails/rails/issues</a>