Replace the country table with a static XML countries file

Storing the countries in the database is overkill, so just use a
copy of the geonames countryInfo data that is loaded into a hash
the first time it is used.
This commit is contained in:
Tom Hughes 2014-01-17 19:25:58 +00:00
parent 933b091330
commit 42b329ed82
6 changed files with 4798 additions and 66 deletions

View file

@ -0,0 +1,5 @@
class DropCountries < ActiveRecord::Migration
def change
drop_table :countries
end
end