Initially, the migration was irreversible. It isn't suitable for people who want to uninstall this extension. Instead of generating all documents during the migration, I borrow the idea from PR #122. Let users generate documents on demand.
Additionally, since this gem hasn't support file uploading yet, the original way can cause chaos on the production server. I, thus, want to propose to remove the documents generation during the migration.
A few tweaks in the order_decorator and engine are included in this PR.
Initially, the migration was irreversible. It isn't suitable for people who want to uninstall this extension. Instead of generating all documents during the migration, I borrow the idea from PR #122. Let users generate documents on demand.
Additionally, since this gem hasn't support file uploading yet, the original way can cause chaos on the production server. I, thus, want to propose to remove the documents generation during the migration.