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

Take AR affixes into account for Action Mailbox database models #50300

Merged
merged 1 commit into from Dec 11, 2023

Conversation

chaadow
Copy link
Contributor

@chaadow chaadow commented Dec 8, 2023

Follow up to #50247 and #50167 cc @jonathanhefner

This removes the redundant hard coded table names to make the models compatible with ActiveRecord::Base.{prefix|suffix}

This also adds prefix/suffix in the dummy app to force the entire test suite to be agnostic to hard-coded table names.

@chaadow chaadow force-pushed the fix_actionmailbox_table_prefix branch from d9490f1 to 6dde461 Compare December 8, 2023 10:06
Copy link
Member

@eileencodes eileencodes left a comment

Choose a reason for hiding this comment

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

Thanks for the PR!

Can you add some tests for the prefix/suffix?

@chaadow chaadow force-pushed the fix_actionmailbox_table_prefix branch 4 times, most recently from 174c72a to 07fea21 Compare December 8, 2023 18:52
@eileencodes eileencodes merged commit ac97750 into rails:main Dec 11, 2023
4 checks passed
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

2 participants