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?

On Monday, August 13, 2012 8:20:12 PM UTC-7, Agoofin wrote:
>
> How many records are you talking about?
>
> For a few records, once in a while, you could do it in Ruby - Google using 
> ActiveRecord outside of Rails for some more info.
>
> Why do you have deleted tables? You might consider adding a field like 
> "Active" and filter the non active records
>
> On Monday, August 13, 2012 10:42:10 PM UTC-4, ZeroModulus wrote:
>>
>> For every table in my app there is a corresponding deleted_.* table. I 
>> would like to be able to copy a record to its corresponding deleted_.* 
>> table. How might I achieve this?
>>
>> If I have to have models for a deleted record, could I use some 
>> metaprogramming magic to create these models? How would I do that if so?
>>
>

-- 
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 [email protected].
To unsubscribe from this group, send email to 
[email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msg/rubyonrails-talk/-/MQdIkzqrAAgJ.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to