Skip to content

Instantly share code, notes, and snippets.

@rvalyi
Created January 18, 2010 18:16
Show Gist options
  • Save rvalyi/280240 to your computer and use it in GitHub Desktop.
Save rvalyi/280240 to your computer and use it in GitHub Desktop.
Inst2ProductProduct.find(:all, :fields=>['name', 'categ_id']).each{|inst1_product| Inst1ProductProduct.create(:name=>inst1_product.name, :categ_id=>1)}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment