You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
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.
The text was updated successfully, but these errors were encountered: