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

Consider options when removing UNIQUE KEYs #47647

Merged
merged 1 commit into from Jun 2, 2023

Conversation

fatkodima
Copy link
Member

Follow up to #46192.

Currently, it is possible to remove the unique constraint only by name (specified as a String). So added support for removing by columns and checking additional options, if specified. Similar to how foreign keys are implemented, for example.

Also renamed :column_name option to :column, to be consistent with the add_foreign_key/remove_foreign_key and remove_index.

cc @alpaca-tc @yahonda

@yahonda
Copy link
Member

yahonda commented May 30, 2023

Would you address the conflict?

@fatkodima fatkodima force-pushed the remove_unique_key-by-options branch from 7336580 to 1c469c5 Compare May 30, 2023 12:15
@fatkodima
Copy link
Member Author

@yahonda Rebased.

@rafaelfranca rafaelfranca merged commit fb919da into rails:main Jun 2, 2023
9 checks passed
@fatkodima fatkodima deleted the remove_unique_key-by-options branch June 2, 2023 20:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants