Actions
Bug #4415
closedFK error when deleting a smart proxy
Status:
Duplicate
Priority:
Normal
Assignee:
-
Category:
Database
Target version:
-
Description
Mysql2::Error: Cannot delete or update a parent row: a foreign key constraint fails (`foreman`.`subnets`, CONSTRAINT `subnets_dhcp_id_fk` FOREIGN KEY (`dhcp_id`) REFERENCES `smart_proxies` (`id`)): DELETE FROM `smart_proxies` WHERE `smart_proxies`.`id` = 4
Updated by Dominic Cleal almost 11 years ago
- Related to Bug #3194: Ugly errors when destroy actions are stopped by FKs added
Updated by Dominic Cleal over 10 years ago
- Is duplicate of Bug #5788: before_destroy missing from EnsureNotUsedBy.new in SmartProxy model added
Actions