ActiveRecord::InvalidForeignKey: PG::ForeignKeyViolation: ERROR: update or delete on table "namespaces" violates foreign key cons...
https://sentry.gitlab.net/gitlab/gitlabcom/issues/590420/
PG::ForeignKeyViolation: ERROR: update or delete on table "namespaces" violates foreign key constraint "fk_rails_e2595d00a1" on table "gitlab_subscriptions"
DETAIL: Key (id)=(2812566) is still referenced from table "gitlab_subscriptions".
peek/views/pg.rb:17:in `async_exec'
super(*args)
peek/views/pg.rb:17:in `async_exec'
super(*args)
active_record/connection_adapters/postgresql_adapter.rb:600:in `block in exec_no_cache'
log(sql, name, binds, type_casted_binds) { @connection.async_exec(sql, type_casted_binds) }
active_record/connection_adapters/abstract_adapter.rb:590:in `block in log'
connection_id: object_id) { yield }
active_support/notifications/instrumenter.rb:21:in `instrument'
yield payload
...
(76 additional frame(s) were not displayed)
ActiveRecord::InvalidForeignKey: PG::ForeignKeyViolation: ERROR: update or delete on table "namespaces" violates foreign key constraint "fk_rails_e2595d00a1" on table "gitlab_subscriptions"
DETAIL: Key (id)=(2812566) is still referenced from table "gitlab_subscriptions".
: DELETE FROM "namespaces" WHERE "namespaces"."type" IN ('Group') AND "namespaces"."id" = 2812566
PG::ForeignKeyViolation: ERROR: update or delete on table "namespaces" violates foreign key constraint "fk_rails_e2595d00a1" on table "gitlab_subscriptions"
DETAIL: Key (id)=(2812566) is still referenced from table "gitlab_subscriptions".
: DELETE FROM "namespaces" WHERE "namespaces"."type" IN ('Group') AND "namespaces"."id" = 2812566