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

Fix for strong_migrations #850

Merged
merged 2 commits into from
Oct 17, 2023
Merged

Conversation

DaniG2k
Copy link
Contributor

@DaniG2k DaniG2k commented Sep 30, 2023

Closes #849

This PR modifies the pay_customer_owner_index index to rely on 3 columns instead of 4, so that migrations pass for people using the strong_migrations gem. I've also made this index unique as per Chris's comment.

Here's the explanation as to why one should keep non-unique indexes to three columns or less

Closes pay-rails#849

This PR modifies the `pay_customer_owner_index` index to rely on 3 columns instead of 4, so that migrations pass for people using the `strong_migrations` gem. Here's the explanation as to why one should [keep non-unique indexes to three columns or less](https://github.com/ankane/strong_migrations#keeping-non-unique-indexes-to-three-columns-or-less)
@excid3 excid3 merged commit c0958ea into pay-rails:master Oct 17, 2023
33 checks passed
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.

create_pay_tables.pay.rb migration file fails to run if strong_migrations gem installed
2 participants