puts errors in save
This commit is contained in:
parent
1336cb995b
commit
97dd391205
|
|
@ -26,6 +26,9 @@ ps_images.each do |pi|
|
|||
image.cover = pi.cover
|
||||
image.updated_by = 1
|
||||
image.active = true
|
||||
image.save
|
||||
puts "saved: #{image.id}"
|
||||
if image.save
|
||||
puts "saved: #{image.id}"
|
||||
else
|
||||
puts image.errors
|
||||
end
|
||||
end
|
||||
|
|
|
|||
Loading…
Reference in New Issue