Re: [Rails] Re: How can I copy records from one table to another?
On 14 August 2012 11:12, Andrew Vit <andrew@avit.ca> wrote:
> acts_as_paranoid simply adds a deleted_at flag, it doesn't move records to a
> separate table.
It does a *little more* than simply that...
> Something like acts_as_archive is a better equivalent.
The requirement to move them to another table was because the OP
didn't know how to "flag" records in the same table as deleted and
have them auto-magically ignored by finders, etc.
If the requirement is to archive them (which *isn't* the same as
softly deleting), along with the hassle of managing two sets of
tables... then acts_as_archived could be ideal.
--
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+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home