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

create_continuous_aggregate not reversible from AR migration #84

Open
intermittentnrg opened this issue Dec 20, 2024 · 1 comment
Open

Comments

@intermittentnrg
Copy link
Contributor

I tried to run rake db:migrate:down VERSION=xxx on a AR migration that used create_continuous_aggregate and it just tried to run create_continuous_aggregate again instead of dropping it.

It should either work, or it should raise irreversible migration error.

Further drop_continuous_aggregate did not exist, but drop_continuous_aggregate does exist.
Turns out alias_method entry is missing for drop_continuous_aggregate.

alias_method :create_continuous_aggregates, :create_continuous_aggregate

@jonatas
Copy link
Collaborator

jonatas commented Jan 6, 2025

Thanks for reporting it @intermittentnrg. I see you have the draft in progress, I am looking forward to reviewing the PR 🚀

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

No branches or pull requests

2 participants