Set primary key with instance_variable_set