For the sake of explanation; Given a Document is a collection of data that may be updated over time with each change being persisted as a File. In the context of ActiveStorage, an attachment is an abstraction/proxy for a File, not a Document.
In other words, if you want to support multiple versions, use a `has_many :files` with a helper that points to the `current` if you need to maintain a history of the previous versions. On Tuesday, April 30, 2019 at 4:33:19 PM UTC-7, Whyves wrote: > > Hi guys, > > We need to implement versioning in our product and unfortunately this is > not yet supported by ActiveStorage. Do any of you know if someone is > working on it ... or maybe another gem that does that? I searched but > didn't find anything. If something is in progress we could possibly > contribute. > > Thanks! > > > -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Core" group. To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-core+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-core/1367f8e7-8b9e-4193-bdd9-f911f17c09e3%40googlegroups.com.