Remove the flight_id column from the pireps table
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user