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

Unable to rollback the created table data_migrations #194

Open
ngouy opened this issue Jul 5, 2021 · 1 comment
Open

Unable to rollback the created table data_migrations #194

ngouy opened this issue Jul 5, 2021 · 1 comment

Comments

@ngouy
Copy link

ngouy commented Jul 5, 2021

Really practical gem, but it would be more intuitive to have a setup rake take that generates the migration that create the data_migration table. Issue is that if you create and migrate your first data_migration, the rollback will (given your data migration is rollbackable) just run the down of your file, but won't rollback your newly created data_migrations table

@ngouy ngouy changed the title Unable to rollback the created table data_migration Unable to rollback the created table data_migrations Jul 5, 2021
@ngouy
Copy link
Author

ngouy commented Jul 5, 2021

Of course the fix is to create my own migration to remove the table, but I would expect a migrate and it's counterpart rollback to go back to the state it was before running migrate, if not for the data, at least for the schema.rb

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

1 participant