Skip to content

Instantly share code, notes, and snippets.

@manlycode
Created May 14, 2014 14:46
Show Gist options
  • Save manlycode/05708bec015fadf15df7 to your computer and use it in GitHub Desktop.
Save manlycode/05708bec015fadf15df7 to your computer and use it in GitHub Desktop.
locations = Location.all.select {|l| l.geocode.nil? }
market_addresses = MarketAddress.all.select {|l| l.geocode.nil? }
locations.each {|l| l.save! }
market_addresses {|ma| ma.save! }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment