Database referential integrity enforcer for Rails polymorphic associations using triggers.