This project is archived and is in readonly mode.

#6793 new
David Workman

Automatically generated revert isn't correct for index

Reported by David Workman | May 22nd, 2011 @ 11:17 AM

On the latest 3.1.0.rc1 branch, I used the line in a migration:

  def change
    add_index :some_table, [:column1, :column2], :unique => true, :name => "some_table_unique_entries"
  end

The new automatically generated rollback action attempted to revert this change with:

  remove_index :some_table, [:column1, :column2]

which failed because the generated index name from this did not match the overridden index name.

No comments found

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

Tags

Pages