playthecall / playthecall-2013

The Call é um jogo que reúne as pessoas ao redor do sonho coletivo de transformar o mundo.
playthecall
13 stars 5 forks source link

Broken Avatars #143

Open thiagogabriel opened 11 years ago

thiagogabriel commented 11 years ago

As I said, that solution https://github.com/playthecall/playthecall/pull/124 broke almost all avatars. Since the store_dir was changed, pictures uploaded before this change are broken. There are some workarounds to solve it, but I think the right thing to do is create a migration script to change images from /uploads/[image_name.JPG] to /uploads/user/avatar/[user_id]/[image_name.JPG].

What do you think?

eniolopes commented 11 years ago

Sounds good, create a rake task that does that, and pull request it