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

Bugfix/fix remove index add index 125 #126

Merged
merged 3 commits into from
Dec 3, 2021

Conversation

tagliala
Copy link
Member

No description provided.

@tagliala tagliala force-pushed the bugfix/fix-remove-index-add-index-125 branch 7 times, most recently from c3128ad to f362550 Compare November 30, 2021 22:12
@tagliala
Copy link
Member Author

We have discussed this modular approach some while ago.

Since we have a lot of issues with those method signatures, I've tried to separate modules. I still don't like it (naming and default behavior, mostly), but this solves the issue and we have removed all the inline checks of ruby versions and rails versions that were causing headaches

Copy link
Contributor

@gridanjbf gridanjbf left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would add tests on :add_index on temporal table without name option.

@tagliala tagliala force-pushed the bugfix/fix-remove-index-add-index-125 branch from f362550 to 79eed4e Compare December 1, 2021 16:22
@tagliala tagliala force-pushed the bugfix/fix-remove-index-add-index-125 branch 2 times, most recently from 1030c27 to c3e1317 Compare December 2, 2021 08:24
The signature of `add_index` and `remove_index` is different among
Rails 6.1 and older Rails versions.

The previous implementation with conditional checking did not cover
all the cases

This approach conditionally requires implementations basing on AR
version

Fix #125
@tagliala tagliala force-pushed the bugfix/fix-remove-index-add-index-125 branch from c3e1317 to fe0d525 Compare December 3, 2021 10:46
@tagliala tagliala marked this pull request as ready for review December 3, 2021 10:50
@tagliala tagliala merged commit c2f0b2f into master Dec 3, 2021
@tagliala tagliala deleted the bugfix/fix-remove-index-add-index-125 branch December 3, 2021 11:01
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.

3 participants