[Rails] Re: delete rows not updated

2009-01-05 Thread Robby Russell
On Mon, Jan 5, 2009 at 12:32 PM, Me wrote: > > I have a table of data that I update with a file. I would like to > delete all data that does not get updated. We've done stuff like this before. One pattern that we used was: 1) At the beginning of the import process, we'd set a unique value (lik

[Rails] Re: delete rows not updated

2009-01-05 Thread Joshua Abbott
How are you checking to see if the row was updated or not? By the updated_at timestamp, or something else? I'm not sure if you're asking for help coming up with a way to determine whether or not a row should be deleted, or just how to delete it. The how to delete is simple enough, I guess. Jus

[Rails] Re: delete rows not updated

2009-01-05 Thread Jeff
On Jan 5, 2:15 pm, Me wrote: > Is there an easy way to delete all rows not updated when done updating > a db? What in the world do you mean? Hard to answer a question without any details or context to what you're doing. :-) Jeff purpleworkshops.com --~--~-~--~~~---~

[Rails] Re: delete rows not updated

2009-01-05 Thread Me
I have a table of data that I update with a file. I would like to delete all data that does not get updated. On Jan 5, 2:28 pm, Jeff wrote: > On Jan 5, 2:15 pm, Me wrote: > > > Is there an easy way to delete all rows not updated when done updating > > a db? > > What in the world do you mean? >