data-migrate icon indicating copy to clipboard operation
data-migrate copied to clipboard

Migrate and update data alongside your database structure.

Results 60 data-migrate issues
Sort by recently updated
recently updated
newest added

Upon updating from 8.0.0 to 8.1.1, `bundle install` prints the following notice and instructions: ``` ******************************************************************************** data-migrate: IMPORTANT: Breaking change introduced for migrations from v2. Failure to run the migration...

Rails 7 is the next release coming up. in our Gemfile we have ` gem "rails", "7.0.0.alpha", git: 'https://github.com/rails/rails.git', branch: 'main'` An upgrade is not possible with data-migrate because of...

This PR is made in reference to issue #114, specifically [this comment](https://github.com/ilyakatz/data-migrate/issues/114#issuecomment-485013129). It auto appends `_data` to the generated file name and `Data` to the generated class name of that...

`DataMigrator::Migrator.needs_migration?` should be `DataMigrator::DataMigrator.needs_migration?`

Unlike schema migrations, data migrations are easy to test but require a bit of special setup. This adds a spec file to the generator. * Loads the migration. * Sets...

We have some models with after_commit callbacks around ActiveStorage and some other external interactions that appear to be running after the data migration has completed. In the case of the...

Hi and thanks for this beautiful library. In our company we rely on `db:prepare` task to maintain devs' databases state. This task basically migrates an existing database, or creates a...

Most of the data migrations don't want to be wrapped in a transaction, the changes on each record normally should be applied immediately. It is easy to forget about the...

In the blob: https://github.com/ilyakatz/data-migrate/blob/1db042bfd1f29602dffe27b233e3261fa7eb7bb4/tasks/databases.rake#L13-L46 The following variables are currently assigned to the same value: https://github.com/ilyakatz/data-migrate/blob/1db042bfd1f29602dffe27b233e3261fa7eb7bb4/tasks/databases.rake#L16 https://github.com/ilyakatz/data-migrate/blob/1db042bfd1f29602dffe27b233e3261fa7eb7bb4/tasks/databases.rake#L25 I think Line 25 is instead supposed to read ``` current_data_version = DataMigrate::DataMigrator.current_version ```...

Is it correct to using `ActiveRecord::Migrator.current_version` to get current data_migration version? https://github.com/ilyakatz/data-migrate/blob/126e409483d0b867428ae4550b2d05e9b2d3ec60/tasks/databases.rake#L25 As far as I understand, you need to use `DataMigrate::DataMigrator.current_version` here, right?