puts errors in save

This commit is contained in:
Adrian Hinz 2018-04-22 00:21:45 +02:00
parent 1336cb995b
commit 97dd391205
1 changed files with 5 additions and 2 deletions

View File

@ -26,6 +26,9 @@ ps_images.each do |pi|
image.cover = pi.cover image.cover = pi.cover
image.updated_by = 1 image.updated_by = 1
image.active = true image.active = true
image.save if image.save
puts "saved: #{image.id}" puts "saved: #{image.id}"
else
puts image.errors
end
end end