foodcoops / foodsoft

Web-based software to manage a non-profit food coop (product catalog, ordering, accounting, job scheduling).
https://foodcoops.net/
Other
318 stars 146 forks source link

move document data from document plugin to active storage #1050

Closed mortbauer closed 2 weeks ago

yksflip commented 4 months ago

great! I've added a db migration, so existing documents are kept over this change. Can you maybe try it out? Otherwise this looks good to me!

mortbauer commented 4 months ago

I actually realized that I had forgotten to commit the migration I created. I tried yours now, the problem I face is that the migrations from the plugins directory are actually not run. Do I have to use another task as db:migrate?

yksflip commented 4 months ago

yes you'd either need to copy it manually or run rake railties:install:migrations (see plugins/documents/README.md)

yksflip commented 2 weeks ago

I thought it would be good to add the migration also to the default path, as the documents plugin is enabled by default and also the other plugin migrations life there ...