Will help remvoe 'records' if we remove the domain
Merge pull request #2 from huglester/patch-1

Adding foreign key constraint to ensure that when a domain is deleted all child records are deleted too.