/home/mip/mip/database/migrations/client/2017_08_03_082621_create_survey_subjects.php
<?php

use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;

class CreateSurveySubjects extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::create('survey_subjects', function (Blueprint $table) {
            $table->increments('id');
            $table->text('name');
            $table->integer('principal_id')->unsigned()->index();
            $table->integer('template_id')->unsigned()->index();
            $table->integer('field_officer_assigned')->unsigned()->index();
            $table->integer('editor_assigned')->unsigned()->index();
            $table->date('interview_date')->index();
            $table->date('completion_date')->index();
            $table->enum('status', array('Open', 'Close'))->default('Open')->index();

            $table->timestamps();
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::dropIfExists('survey_subjects');
    }
}