fix PG::Error: ERROR: null value in column role_cd violates not-null