From 12b5bd4b2311210db485a33d0a6d0274f34ddb3c Mon Sep 17 00:00:00 2001
From: danielgrippi <danielgrippi@gmail.com>
Date: Tue, 17 May 2011 10:36:36 -0700
Subject: [PATCH] remove pending contacts

---
 db/migrate/20110406202932_drop_requests_table.rb | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/db/migrate/20110406202932_drop_requests_table.rb b/db/migrate/20110406202932_drop_requests_table.rb
index 8fad9339bf..bff8df0426 100644
--- a/db/migrate/20110406202932_drop_requests_table.rb
+++ b/db/migrate/20110406202932_drop_requests_table.rb
@@ -9,6 +9,12 @@ class DropRequestsTable < ActiveRecord::Migration
     remove_index :requests, :sender_id
 
     drop_table :requests
+
+    execute( <<SQL
+      DELETE contacts.* FROM contacts
+        WHERE contacts.sharing = false
+SQL
+)
   end
 
   def self.down
-- 
GitLab