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

Move to consistent data_migrations #1298

Closed
teadur opened this issue Sep 10, 2019 · 1 comment
Closed

Move to consistent data_migrations #1298

teadur opened this issue Sep 10, 2019 · 1 comment
Assignees

Comments

@teadur
Copy link
Contributor

teadur commented Sep 10, 2019

We have been using different methods how we migrate data in our database.

  1. At first data_migrate gem was used ( https://github.com/internetee/data-migrate )
    That introduced db/data directory with some migrations and data_migrate table (what was removed in 62ec30c )
    Our Gemfile still requires data_migrate.
    If we want to use data_migrate gem we should move to current version of it ( https://github.com/ilyakatz/data-migrate )

  2. We have migrated some data inside normal activerecord migrations
    38f967a

  3. We have written some data migrations as rake tasks ( Very hard to figure out the correct ordering / at what point of time they should be applied )

https://github.com/internetee/registry/search?q=data_migrations&unscoped_q=data_migrations

We need to figure out how we want to migrate data and stick to one method.
I propose we upgrade data_migrate gem and use only that for data related migrations.

@vohmar
Copy link
Contributor

vohmar commented Feb 26, 2020

fixed by #1539

@vohmar vohmar closed this as completed Feb 26, 2020
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

3 participants