Is it possible to migrate data between two different datastores using Dragonfly?
I'm currently storing images in the DB - using a custom relational data store, and want to migrate to an S3-like web API sore.
Is it possible to migrate data between two different datastores using Dragonfly?
I'm currently storing images in the DB - using a custom relational data store, and want to migrate to an S3-like web API sore.
The answer is in issue markevans/dragonfly #382 on github.
In short:
job = Dragonfly.app("filestore").fetch(model.attachment_uid)
model.attachment = job.to_file(job.name)
Another solution worth mentioning I found here https://gist.github.com/lassebunk/cce8b54d7d36da0960eb)
(@CambridgeMike it is probably your own issue, but recording answers for others here).