Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Teach have_db_index about expression indexes #1211

Merged
merged 3 commits into from
May 31, 2019
Merged

Conversation

mcmire
Copy link
Collaborator

@mcmire mcmire commented May 31, 2019

In Rails 5, the schema layer was updated so that indexes could be
created on expressions rather that simply columns. Update
have_db_index so that you can test for this.

More reading: rails/rails@edc2b77


Fixes #945.
Fixes #1207.

@mcmire mcmire force-pushed the extend-have-db-index branch from 49e1397 to e2b808e Compare May 31, 2019 04:55
mcmire added 3 commits May 31, 2019 00:12
In Rails 5, the schema layer was updated so that indexes could be
created on expressions rather that simply columns. Update
`have_db_index` so that you can test for this.

More reading: <rails/rails@edc2b77>
@mcmire mcmire force-pushed the extend-have-db-index branch 2 times, most recently from 10666aa to 4e2448d Compare May 31, 2019 06:21
@mcmire mcmire closed this May 31, 2019
@mcmire mcmire deleted the extend-have-db-index branch May 31, 2019 14:04
@mcmire mcmire merged commit 4e2448d into master May 31, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Custom case insensitive index fails to validate have_db_index: normalize_columns_to_array is always an array
2 participants