Answer the question
In order to leave comments, you need to log in
How to give the opportunity not to delete anything in a Ruby on Rails project?
The task is to ensure that the site does not give the opportunity not to delete anything from the database, but to cleanly mark it as deleted.
How can this problem be solved in a simple way?
Answer the question
In order to leave comments, you need to log in
Mark entry as :deleted => true. And then use scope :active, -> { where(deleted: false) }
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question