Skip to content

Commit

Permalink
Add validation guess for Postgress inet field
Browse files Browse the repository at this point in the history
  • Loading branch information
petteyg committed Sep 20, 2011
1 parent b3157cd commit 744558d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/Cake/Console/Command/Task/ModelTask.php
Expand Up @@ -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'];
}
}

Expand Down

0 comments on commit 744558d

Please sign in to comment.