fuel/oil — pull request #47 by baileylo (2011-10-10 15:58:48+00:00)
Title: Migration generator will overwrite created_at and updated_at fields

When going through the documentation I ran "php oil g model post title:varchar[50] body:text user_id:int created_at:datetime". The generated migration is:

```php
array('constraint' => 11, 'type' => 'int', 'auto_increment' => true),
'title' => array('constraint' => 50, 'type' => 'varchar'),
'body' => array('type' => 'text'),
'user_id' => array('constraint' => 11, 'type' => 'int'),
'created_at' => array('type' => 'datetime'),
'created_at' => array('constraint' => 11, 'type' => 'int'),
'updated_at' => array('constraint' => 11, 'type' => 'int'),
), array('id'));
}

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

As you can see, 'created_at' is declared twice, the second time overwriting the user's command line declaration.