Remove the flight_id column from the pireps table

This commit is contained in:
Nabeel Shahzad
2018-02-24 15:51:04 -06:00
parent 7345dd8076
commit d0b3b27975
5 changed files with 1 additions and 11 deletions

View File

@@ -29,7 +29,6 @@ class Pirep extends BaseModel
'user_id',
'airline_id',
'aircraft_id',
'flight_id',
'flight_number',
'route_code',
'route_leg',
@@ -293,11 +292,6 @@ class Pirep extends BaseModel
return $this->hasMany(PirepFieldValues::class, 'pirep_id');
}
public function flight()
{
return $this->belongsTo(Flight::class, 'flight_id');
}
public function pilot()
{
return $this->user();