laravel/laravel — pull request #678 by crynobone (2012-05-16 02:35:44+00:00)
Title: Allow to add database specific fieldtype within Schema using Closure.

This allow developer that need database specific configuration to do so, without the need to do Schema, ALTER TABLE using Raw Query and so on.

For example:

Schema::create('users', function($table)
{
$table->increments('id');
$table->string('username', 50);
$table->generic('gender', function (Fluent $column) {
return "ENUM('m','f')";
});
}

Initial discussion at #668