Skip to content

Commit b3a5ddb

Browse files
remove county relationship
1 parent 678a51c commit b3a5ddb

1 file changed

Lines changed: 0 additions & 2 deletions

File tree

lib/free_zipcode_data/zipcode_table.rb

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,14 +31,12 @@ def write(row)
3131
return nil unless row[:postal_code]
3232

3333
state_id = get_state_id(row[:short_state], row[:state])
34-
county_id = get_county_id(row[:county])
3534
city_name = escape_single_quotes(row[:city])
3635

3736
sql = <<-SQL
3837
INSERT INTO zipcodes (code, state_id, city, lat, lon, accuracy)
3938
VALUES ('#{row[:postal_code]}',
4039
'#{state_id}',
41-
'#{county_id}',
4240
'#{city_name}',
4341
'#{row[:latitude]}',
4442
'#{row[:longitude]}',

0 commit comments

Comments
 (0)