I'm using Mongoid as my DB wrapper. I had a model with no inheritance and thousands of documents in the collection. I then refactored it to inherit from a base class. Now I can't retrieve the original data. I don't see it when querying the class or the base class.
How should I be handling this change? I see that Mongoid does allow inheritance and will store all the documents in the parent collection, then add a "_type" field for type differentiation. Should I migrate the data to a temp collection, deploy the code change and then migrate the temp data to the new base collection and set the _type field?
Thanks