fuel/oil — pull request #67 by crynobone (2011-11-08 16:43:50+00:00)
Title: Allow to add constraint for enum (multiple select value) and decimal 

Allow to add constraint for enum (multiple select value) and decimal (value with floating point)

## Example

```
php oil g migration create_users username:string[100] status:enum[unverified,verified] status1:decimal[10] status2:float[10,2] status3:enum[1]
```
will generate

```
array('constraint' => 11, 'type' => 'int', 'auto_increment' => true),
'username' => array('constraint' => 100, 'type' => 'varchar'),
'status' => array('constraint' => '"unverified","verified"', 'type' => 'enum'),
'status1' => array('constraint' => '10', 'type' => 'decimal'),
'status2' => array('constraint' => '10,2', 'type' => 'float'),
'status3' => array('constraint' => '"1"', 'type' => 'enum'),
'created_at' => array('constraint' => 11, 'type' => 'int'),
'updated_at' => array('constraint' => 11, 'type' => 'int'),
), array('id'));
}

public function down()
{
\DBUtil::drop_table('users');
}
}
```

Signed-off-by: crynobone