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

Ruby 3 Rails 6.1, cannot remove_index or rollback add_index #125

Closed
tagliala opened this issue Nov 30, 2021 · 0 comments
Closed

Ruby 3 Rails 6.1, cannot remove_index or rollback add_index #125

tagliala opened this issue Nov 30, 2021 · 0 comments

Comments

@tagliala
Copy link
Member

The migration

add_index :users, :enabled

The error I'm getting:

TypeError: no implicit conversion of Symbol into Hash

Why specs don't work

Remove index is tested by passing an index name as argument, but this is not the only supported use case and it is not the average use case.

We should test that adapter.remove_index table, :test pass

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

No branches or pull requests

1 participant