fix Gii model generator does not generate rules for required fields ($column->defaultValue).