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

feature: db:migrate:reset:with_data #161

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

schwern
Copy link

@schwern schwern commented Dec 15, 2020

Usually when resetting a database there is no data, but we use data migrations to create table partitions so we need to make sure they run even in development. (Having them as schema migrations adds spurious changes to the schema every month).

Usually when resetting a database there is no data, but we use data migrations
to create table partitions so we need to make sure they run. (Having them as
schema migrations adds spurious changes to the schema every month).
@schwern schwern force-pushed the feature/db-migrate-reset-with_data branch from b7c04de to 444d5a7 Compare December 15, 2020 22:36
@schwern
Copy link
Author

schwern commented Dec 22, 2020

This also ensures the data migration table isn't removed from the schema by rails db:migrate:reset.

@ilyakatz
Copy link
Owner

hm, don't know how I missed this one, this was a long time ago but seems like a simple change. do people still think this is useful?

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