updated associations in product model, created ensure_not_referenced_by_any_line_item method