Move violation rating (resource_code) to Violation table