unepwcmc/SAPI — pull request #159 by migtorres (2013-12-23 18:07:37+00:00)
Title: Resolve IP to country or organisation when tracking downloads [#62622454]

A rake task was created to populate 3 new columns on the trade_trade_data_downloads table:

City
Country (we use the iso2 code here)
Organization

When the GeoIP database doesn't have information it is written "Unknown"

You will need to run rake db:migrate

To use run:

rake geo_locate:data_downloads