increments('id'); $table->string('code'); $table->string('name'); $table->boolean('active'); $table->timestamps(); $table->index('code'); $table->unique('code'); }); } /** * Reverse the migrations. * * @return void */ public function down() { Schema::drop('airlines'); } }