From eedecb9cb9f060ee80a146375b121f1deebf3c3a Mon Sep 17 00:00:00 2001
From: Fernando Alonso <krakatoa1987@gmail.com>
Date: Tue, 6 May 2014 18:11:14 -0300
Subject: [PATCH] Fix: Maxmind migration generator failed on rolling back

---
 .../geocoder/maxmind/templates/migration/geolite_city.rb       | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/lib/generators/geocoder/maxmind/templates/migration/geolite_city.rb b/lib/generators/geocoder/maxmind/templates/migration/geolite_city.rb
index fd2125bb..73c93e10 100644
--- a/lib/generators/geocoder/maxmind/templates/migration/geolite_city.rb
+++ b/lib/generators/geocoder/maxmind/templates/migration/geolite_city.rb
@@ -22,6 +22,7 @@ class GeocoderMaxmindGeoliteCity < ActiveRecord::Migration
   end
 
   def self.down
-    drop_table :maxmind_geolite_city
+    drop_table :maxmind_geolite_city_location
+    drop_table :maxmind_geolite_city_blocks
   end
 end
-- 
GitLab