Prevent removing the default organization
In !120118 (merged) , we introduced a default organization. This organization should never be deleted. A before_destroy
check is in place but that does not protect against Organization.delete_all
or SQL DELETE FROM
We could introduce a database trigger that would prevent deleting records from organizations
table that have id 1
Question: should we rely on foreign keys for this?