I'm not sure if this will work, but I think you can dynamically add versions to your loader model.
I tried this method on my bootloader and was able to determine the new version for the bootloader by calling the method.
def self.defind_version(version_title, width, height) version version_title do process :resize_to_limit => [width, height] end end
So, you can work with this method call in the hook of creating the db table, which makes a list of versions.
Just an idea, I would have experienced it hard before going to production.
source share