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 reverting rename_table for older migrations #49526

Merged

Conversation

fatkodima
Copy link
Member

Fixes #49523.

Previously, when reversing arguments (args.reverse) if we had options (for example, it is set via compatibility migration for 7.0), it will incorrectly become the first argument.

@jonathanhefner jonathanhefner merged commit 04b3504 into rails:main Oct 7, 2023
4 checks passed
@jonathanhefner
Copy link
Member

jonathanhefner commented Oct 7, 2023

Thank you, @fatkodima! (╯°□°)╯︵ ┻━┻

Backported to 7-1-stable in af514e4.

jonathanhefner added a commit that referenced this pull request Oct 7, 2023
Fix reverting `rename_table` for older migrations

(cherry picked from commit 04b3504)
jonathanhefner added a commit that referenced this pull request Oct 7, 2023
@fatkodima fatkodima deleted the fix-reverting-rename_table-7.0 branch October 7, 2023 18:20
@jonathanhefner jonathanhefner added this to the 7.1.1 milestone Oct 11, 2023
sue445 added a commit to sue445/activerecord-simple_index_name that referenced this pull request Oct 12, 2023
…n version less than 7.1"

This reverts commit 538a211.

This is fixed at rails/rails#49526
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.

ArgumentError: wrong number of arguments (given 3, expected 2) when execute down migration of rename_table
2 participants