ilyakatz / data-migrate

Migrate and update data alongside your database structure.
MIT License
1.4k stars 192 forks source link

Fix current data version lookup in db:migrate:with_data #239

Closed reidab closed 1 year ago

reidab commented 1 year ago

This is a re-creation of #202, which fixes a bug where the AR migration schema version is incorrectly referenced instead of the data migration version.

This causes data migrations be to be incorrectly re-run on an otherwise migrated database whenever the most recent schema version is lower than the most recent data version.

ilyakatz commented 1 year ago

fixied via https://github.com/ilyakatz/data-migrate/pull/240