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

ActiveStorage #164

Open
jasonivers opened this issue Dec 18, 2020 · 0 comments
Open

ActiveStorage #164

jasonivers opened this issue Dec 18, 2020 · 0 comments

Comments

@jasonivers
Copy link

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.

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

1 participant