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 tests for Rails main due to changes relating to default column value #589

Merged
merged 1 commit into from
Mar 7, 2025

Conversation

andyw8
Copy link
Contributor

@andyw8 andyw8 commented Mar 6, 2025

The default values behavior changed in rails/rails#54683

@andyw8 andyw8 force-pushed the andyw8/fix-for-rails-main branch 3 times, most recently from 42a65d6 to 5402089 Compare March 6, 2025 17:20
@andyw8 andyw8 changed the title WIP: Fix tests for Rails main Fix tests for Rails main due to changes relating default column value Mar 6, 2025
@andyw8 andyw8 force-pushed the andyw8/fix-for-rails-main branch from 5402089 to 77e47b3 Compare March 6, 2025 17:21
]
else
[
["id", "integer", nil, false],
Copy link
Contributor Author

Choose a reason for hiding this comment

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

There's some duplication but I think it's easier to follow this way.

@andyw8 andyw8 changed the title Fix tests for Rails main due to changes relating default column value Fix tests for Rails main due to changes relating to default column value Mar 6, 2025
@andyw8 andyw8 marked this pull request as ready for review March 6, 2025 23:42
@andyw8 andyw8 requested a review from a team as a code owner March 6, 2025 23:42
@vinistock
Copy link
Member

Can you please explain what changed? There's no PR description and I'm confused as to why the default for an integer column would now be a string. Also, is that the only default that changed?

@andyw8
Copy link
Contributor Author

andyw8 commented Mar 7, 2025

I had a comment in source, I've copied to the description.

I'm confused as to why the default for an integer column would now be a string.

Other way around. It's a string currently, the change in Rails makes it an integer.

@andyw8 andyw8 merged commit 3d1ab4e into main Mar 7, 2025
29 checks passed
@andyw8 andyw8 deleted the andyw8/fix-for-rails-main branch March 7, 2025 16:53
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.

2 participants