Nullable, default null api_key

This commit is contained in:
James Brooks
2015-01-04 21:04:24 +00:00
parent 8223ae4bee
commit f00ba2efda

View File

@@ -14,7 +14,7 @@ class AlterTableUsersAddApiKey extends Migration
public function up()
{
Schema::table('users', function (Blueprint $table) {
$table->string('api_key')->after('email');
$table->string('api_key')->nullable()->default(null)->after('email');
});
}