Your right.
I could not deal with the additional table.

Thanks for the insight.

John

Marnen Laibow-Koser wrote:
> John Mcleod wrote:
>> Thanks for the quick reply.
>> 
>>>But having two tables with identical structure is smelly.  Why not just 
>>> use a flag and a named_scope?
>> I'm not sure what you mean by this.
> 
> Then go look up named_scope -- or, in this case, default_scope.
> 
>> 
>> Yes, both tables have the identical structure but my idea is too delete 
>> all data from the "import" table after the insert into the "projects" 
>> table.  This way the user has a fresh table to get info from a csv file.
> 
> There's no reason to have a fresh table.  Again, just flag records as 
> appropriate.
> 
> Best,
> --
> Marnen Laibow-Koser
> http://www.marnen.org
> [email protected]

-- 
Posted via http://www.ruby-forum.com/.

--~--~---------~--~----~------------~-------~--~----~
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]
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to