Created
February 7, 2019 11:27
-
-
Save kakawka/56a71311b633d6571d2735f426bdcb31 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
SellableGood.where(name: 'iPhone 5s With FaceTime Gold 16GB 4G LTE').each do |product| | |
image = product.sellable_good_images.first | |
image.url_remote_url = 'http://ipic.su/img/img7/fs/iphone.1549538811.jpg' | |
image.save | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment