Skip to content

Instantly share code, notes, and snippets.

@rohan-krishna
Created December 27, 2018 11:38
Show Gist options
  • Save rohan-krishna/d0d90b7a5c66382a3716599871e8d70c to your computer and use it in GitHub Desktop.
Save rohan-krishna/d0d90b7a5c66382a3716599871e8d70c to your computer and use it in GitHub Desktop.
1375144f4718_create_tasks
<?php
use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
class CreateTasksTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('tasks', function (Blueprint $table) {
$table->increments('id');
$table->timestamps();
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::dropIfExists('tasks');
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment