michelson
(Miguel Michelson Martinez)
December 10, 2020, 4:17pm
1
in the ActiveStorage::Blob class on the initialization we have
after_initialize do
self.service_name ||= self.class.service.name
end
but the self.service_name does not exist
my guess is that I have miss some migrations step on the upgrade ?
1 Like
ghiculescu
(Alex Ghiculescu)
December 10, 2020, 6:39pm
2
ghiculescu
(Alex Ghiculescu)
December 10, 2020, 6:40pm
3
michelson
(Miguel Michelson Martinez)
December 10, 2020, 6:46pm
4
Hi @ghiculescu , thanks for the heads up
as stated on the PR the command to update is rails active_storage:update
will try this, hoping to not blow up my previous images
ghiculescu
(Alex Ghiculescu)
December 10, 2020, 7:15pm
5
You should be fine! It looks like the task just adds these migrations .
michelson
(Miguel Michelson Martinez)
December 10, 2020, 7:16pm
6
yup , it works , just wondering what will happen with the already uploaded files
I’ve created a PR for the documentation on release notes https://github.com/rails/rails/pull/40791
2 Likes
iraszl
(Ivan Raszl)
January 15, 2021, 1:30pm
7
You should be fine. I just did this on one of my sites. The images were preserved. However, I belive the variants will need to be regenerated, because I think the stucture of the path have changed. On 6.1 the variant paths are similar to original image paths. They are now relatively short random strings.
1 Like