```ruby
desc "migrate images to posters"
task migrate_posters: :environment do
  puts "Updating posters..."
  Movie.connection
  Movie.all.each do |movie|
    movie.update_poster
    p movie.poster
  end
  puts "done."
end```

Fix poster fetch rake task bug
user
```ruby
desc "migrate images to posters"
task migrate_posters: :environment do
  puts "Updating posters..."
  Movie.connection
  Movie.all.each do |movie|
    movie.fetch_poster
  end
end```
assistant