#23 set the rank payrate to an aircraft; add some sample data

This commit is contained in:
Nabeel Shahzad
2017-06-21 22:30:32 -05:00
parent 5b920151b8
commit 0b31f492c2
3 changed files with 47 additions and 15 deletions

View File

@@ -25,12 +25,12 @@ class CreateRanksTable extends Migration
$table->unique('name');
});
Schema::create('flight_rank', function(Blueprint $table) {
$table->increments('id');
$table->integer('flight_id')->unsigned();
$table->integer('rank_id')->unsigned();
$table->double('manual_pay', 19, 2)->default(0.0)->unsigned();
$table->double('acars_pay', 19, 2)->default(0.0)->unsigned();
Schema::create('aircraft_rank', function(Blueprint $table) {
$table->increments('id');
$table->integer('aircraft_id')->unsigned();
$table->integer('rank_id')->unsigned();
$table->double('acars_pay', 19, 2)->default(0.0)->unsigned();
$table->double('manual_pay', 19, 2)->default(0.0)->unsigned();
});
}
@@ -42,6 +42,6 @@ class CreateRanksTable extends Migration
public function down()
{
Schema::drop('ranks');
Schema::drop('flight_rank');
Schema::drop('aircraft_rank');
}
}