Displaying 1 result from an estimated 1 matches for "iariap".
Did you mean:
iaria
2008 Jan 11
2
Virtually deleting rows from tables
I dont want to delete the records from my tables but just set a column
is_deleted to true.
What is the best (clean)way to implement this?
Is there any way of defining a model which includes only a set of
records which satisfy a certain conditions.eg a condition to include
the records for which is_deleted is false
some thing like this
def User << ActiveRecord::Base
:conditions=>