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

ActiveStorage

Open jasonivers opened this issue 4 years ago • 0 comments

It appears that if you use ActiveStorage in a data migration, all of the ActiveStorage 'uploads' only happen after the migration is finished, rather than as it is progressing. This seems to be causing a problem when attaching more than one file to a record created in a data migration, as it creates the records for all of them, but only actually uploads the last one.

If I literally cut and paste the code into a rake task, and have the migration run the rake task, it works as expected.

jasonivers avatar Dec 18 '20 00:12 jasonivers