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:
parent
933b091330
commit
42b329ed82
6 changed files with 4798 additions and 66 deletions
5
db/migrate/20140117185510_drop_countries.rb
Normal file
5
db/migrate/20140117185510_drop_countries.rb
Normal file
|
@ -0,0 +1,5 @@
|
|||
class DropCountries < ActiveRecord::Migration
|
||||
def change
|
||||
drop_table :countries
|
||||
end
|
||||
end
|
Loading…
Add table
Add a link
Reference in a new issue