Rails - update a model "in the future"

Viewed 376

We need to add a feature which allows a user to decide, before he make a change to a model, when will this change will take affect (e.g. from tomorrow at 19:43)

The problem we've is that our model has many dependencies with many validations and there is a chance that future changes will conflict one another :

  1. Make change A to take place tomorrow (pass validation test)
  2. Make change B now - this change might have cause change A to be invalid.

Is there a known solution/Gem for that issue? What is the best approach to tackle this?

Thanks.

4 Answers
Related