add dependent: :destroy to delete tickets when parent project is deleted