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