Added OnDelete=delete for belongs_to and has_many_and_belongs_to relations