Rails Uploadedfileを手動で作る https://hai3.net/blog/rails-create-uploadedfile/