remove pending contacts

This commit is contained in:
danielgrippi 2011-05-17 10:36:36 -07:00
parent 8d7b0b2c4c
commit 12b5bd4b23

View file

@ -9,6 +9,12 @@ class DropRequestsTable < ActiveRecord::Migration
remove_index :requests, :sender_id remove_index :requests, :sender_id
drop_table :requests drop_table :requests
execute( <<SQL
DELETE contacts.* FROM contacts
WHERE contacts.sharing = false
SQL
)
end end
def self.down def self.down