This project is archived and is in readonly mode.

#399 ✓duplicate
jnsears

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

    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

    jnsears June 12th, 2008 @ 10:03 AM

    Sorry, but my first patch here. Mind pointing me to an example of this?

    Thanks.

  • CancelProfileIsBroken

    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

    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>

People watching this ticket

Attachments

Pages