Permalink
Browse files

Add validation guess for Postgress inet field

  • Loading branch information...
1 parent b3157cd commit 744558de90c4a408fba6c5602783ff465d6eb3e3 @petteyg petteyg committed Sep 20, 2011
Showing with 2 additions and 0 deletions.
  1. +2 −0 lib/Cake/Console/Command/Task/ModelTask.php
@@ -405,6 +405,8 @@ public function fieldValidation($fieldName, $metaData, $primaryKey = 'id') {
$guess = $methods['date'];
} elseif ($metaData['type'] == 'time') {
$guess = $methods['time'];
+ } elseif ($metaData['type'] == 'inet') {
+ $guess = $methods['ip'];
}
}

0 comments on commit 744558d

Please sign in to comment.