CarrierWave と S3 で保存されたファイルを含むレガシー モデルがあり、再設計のためにこれらのファイルを新しいモデルに移動する必要があります。
私はこのようにしようとしました:
NewModel.create(:name => "bla", :file => old_model_object.file)
しかし、それはこのエラーにつながります:
[WARNING] fog: the specified s3 bucket name(my-bucket-development) is not a
valid dns name, which will negatively impact performance. For details see:
docs.amazonwebservices.com/AmazonS3/latest/dev/…
rake aborted! undefined method `content_length' for nil:NilClass
古いファイルを新しいモデルに移動するにはどうすればよいですか?