Created
February 29, 2012 01:10
-
-
Save axavio/1936719 to your computer and use it in GitHub Desktop.
Error trying to delete contact
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
One that crashes from share_visibilities: | |
ActiveRecord::InvalidForeignKey (PGError: ERROR: update or delete on table "contacts" violates foreign key constraint "share_visibilities_contact_id_fkey" on table "share_visibilities" | |
DETAIL: Key (id)=(2123) is still referenced from table "share_visibilities". | |
: DELETE FROM "contacts" WHERE "contacts"."id" = 2123): | |
lib/diaspora/user/connecting.rb:49:in `remove_contact' | |
lib/diaspora/user/connecting.rb:69:in `disconnect' | |
app/models/aspect_membership.rb:14:in `_callback_before_683' | |
app/controllers/aspect_memberships_controller.rb:20:in `destroy' | |
lib/chrome_frame.rb:39:in `call' | |
Another that crashes from notifications: | |
ActiveRecord::InvalidForeignKey (PG::Error: ERROR: update or delete on table "notifications" violates foreign key constraint "notification_actors_notification_id_fkey" on table "notification_actors" | |
DETAIL: Key (id)=(1049) is still referenced from table "notification_actors". | |
: DELETE FROM "notifications" WHERE "notifications"."target_id" = 5657 AND "notifications"."type" = 'Notifications::StartedSharing' AND "notifications"."target_type" = 'Person' AND "notifications"."recipient_id" = 7): | |
app/models/contact.rb:41:in `destroy_notifications' | |
lib/diaspora/user/connecting.rb:49:in `remove_contact' | |
lib/diaspora/user/connecting.rb:69:in `disconnect' | |
app/controllers/blocks_controller.rb:29:in `disconnect_if_contact' | |
app/controllers/blocks_controller.rb:8:in `create' | |
lib/chrome_frame.rb:39:in `call' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment