remove pending contacts
This commit is contained in:
parent
8d7b0b2c4c
commit
12b5bd4b23
1 changed files with 6 additions and 0 deletions
|
|
@ -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
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue