i simply use the destroy action and a date column for that.
On 23 Nov, 16:48, Mike Gehard
<m...-TxOnFEgXotrc+919tysfdA@public.gmane.org>
wrote:> Hello all,
>
> It seems that my first posting got into some sort of limbo so
> apologies for the repost...
>
> I am wondering how people here are handling soft deletes in Rails.
> I''ve need a couple of gems/plugins that seem to handle this but
from
> what I gather development has stopped on them.
>
> All I need to do right now is mark something as deleted in the
> DB...nothing fancy.
>
> I''m thinking that the simple addition of a deleted_at column, some
> named scopes (maybe even a default scope) and a handler on delete to
> set the deleted_at column and prevent the actual DB delete will do
> the
> trick. Any gotchas that I need to watch out for?
>
> Thanks in advance.
> Mike
--
You received this message because you are subscribed to the Google Groups
"Ruby on Rails: Talk" group.
To post to this group, send email to
rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-talk+unsubscribe@googlegroups.com.
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=.