You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
No we haven't really found a solution yet. We just ensure there is something in the collection before running create_indexes.
For example, we had some mongoid migration code where we had to add a guard clause return if MyCollection.empty? in the self.up method to avoid problems in test apps with an empty database
No we haven't really found a solution yet. We just ensure there is something in the collection before running create_indexes.
For example, we had some mongoid migration code where we had to add a guard clause return if MyCollection.empty? in the self.up method to avoid problems in test apps with an empty database
I just realised that starting from mongoid 4 there is a built-in full text search and you just need to create index:
Context : starting a mongoid container/pod on kubernetes and trying to seed the database with
I am not sure whether this is due to a Mongoid update or something else I am missing.
Backtrace
The faulty lines of code (School collection is empty)
The text was updated successfully, but these errors were encountered: