database/migrations/2018_10_02_234134_create_slangs_table.php
<?php
use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
class CreateSlangsTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('slangs', function (Blueprint $table) {
$table->uuid('id');
$table->string('name');
$table->string('meaning');
$table->text('description');
$table->text('example');
$table->timestamps();
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::dropIfExists('slangs');
}
}