database/migrations/create_continents_table.php.stub
<?php
use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
class CreateContinentsTable extends Migration
{
public function up()
{
Schema::create('continents', function (Blueprint $table) {
$table->increments('id');
$table->string('name');
$table->string('code')->unique();
$table->timestamps();
});
}
public function down()
{
Schema::dropIfExists('continents');
}
}