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

Reload type map when creating or dropping PostgreSQL enums #49772

Merged
merged 1 commit into from
Oct 28, 2023

Conversation

fatkodima
Copy link
Member

Fixes #49767.

All other enum-related methods are already reloading type map.
I am not sure are tests needed for this?

cc @ghiculescu (as implementor of the PostgreSQL enum)

@yahonda
Copy link
Member

yahonda commented Oct 25, 2023

Thank you for the pull request as always. Would you add some tests to make sure to avoid future regressions?

@fatkodima
Copy link
Member Author

Added test case.

@yahonda yahonda merged commit 680f503 into rails:main Oct 28, 2023
4 checks passed
@fatkodima fatkodima deleted the reload-type_map-for-enums branch October 28, 2023 08:40
@fatkodima
Copy link
Member Author

@yahonda Can you please also backport this to 7-1-stable?

yahonda added a commit to yahonda/rails that referenced this pull request Oct 29, 2023
Reload type map when creating or dropping PostgreSQL enums
@yahonda
Copy link
Member

yahonda commented Oct 29, 2023

Backported to the 7-1-stable branch via 9a58e00

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.

postgres enum array + db:prepare regression in rails 7.1.1
4 participants