I think maybe the uopuser_id and url_id should be :null => false as well