Deleting a document in monogid after sometime
问题 I am working on rails app with mongoid. This is one of model(collection): class Document include Mongoid::Document include Mongoid::Timestamps include Mongoid::Paperclip field :time, type: Time field :radius, type: Float attr_accessible :time,:radius end The time field contain the actual time when model should be deleted. How can I do that , One idea I have to write a script put that in cron job. But I don't want to create a cron job. Is there any other way I can automate this or any method