documentation for 'add_index' wrong
Reported by alby | May 27th, 2008 @ 01:53 PM
Documentation for add_index() says:
"The index will be named after the table and the first column name [...] When creating an index on multiple columns, the first column is used as a name for the index."
That's wrong (it also repeats itself twice). Index will be named after all column names.
I.e., if we do...
add_index :some_table, [:col1, :col2]
...then the name of the index will be composed of both 'col1' and 'col2'.
Comments and changes to this ticket
-
rick May 28th, 2008 @ 12:44 PM
- → State changed from new to invalid
Hey, did you mean to put this in http://rails.lighthouseapp.com ?
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 »
Using Lighthouse to track Lighthouse.
