I have a question I am currently using carrierwave and google storage to store images, but I wanted to know if there is a way to take the image of the model to and assign it to another model so that it stores that same image.
currently try this but without results:
modelo1 = Modelo1.last
modelo2.picture_name = modelo1.file_name
modelo2.picture_content_type = modelo1.file_content_type
modelo2.picture_size = modelo1.file_size
modelo2.picture_updated_at = modelo1.file_updated_at
modelo2.original_picture_name = modelo1.original_file_name
modelo2.save