Hey guys, I'm trying to copy the entire content of table "actives" to the table "olds". What I've done in the past is use regular SQL statements, but I'd like to make my code more Ruby-ish I suppose. Using SQL, I would usually run a DELETE FROM olds to clear that table, then iterate over everything in the actives table and copy it over to the olds table. Is there a better way to do this, especially now that I'm using ActiveRecord?
Thanks! - Jeff -- 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 -~----------~----~----~----~------~----~------~--~---

