How would I go about creating one random_filename
in the uploader class and using that one for every version (with the
version prefix of course in the filename)?
You can use the updated_at from the model. But make to a timestamp by using updated_at.to_i
Thats what i use for my photos
Obviously, that's not at all what we have to go through to accomplish
such a simple task as having a consistent unique filename across
versions?
Is there a reason for the filename function getting called 2 times for
every version? first when it didn't create the record yet, and
afterwards when it did and uploads it off to s3.
So you wind up with a 0.jpg in the database and a correct string on
s3, but you can't refer to it.