acts_as_paranoid simply adds a deleted_at flag, it doesn't move records to a separate table.
Something like acts_as_archive is a better equivalent. Andrew Vit On Tuesday, August 14, 2012 12:15:01 AM UTC-7, Michael Pavling wrote: > > > On 14 Aug 2012 04:38, "ZeroModulus" <brlafr...@gmail.com <javascript:>> > wrote: > > > > The number of records would vary widely. > > > > I thought of doing deleted tables because I had already thought of > having an attribute to mark a record as active, but figured I would have to > write an exclusion clause every time. > > > > Would there be a way to do this without having to write exclusion > clauses for every query? > > > > Have a look at the acts_as_paranoid gem. > -- 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@googlegroups.com. To unsubscribe from this group, send email to rubyonrails-talk+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msg/rubyonrails-talk/-/xX8cJgUmv20J. For more options, visit https://groups.google.com/groups/opt_out.