mirror of
https://github.com/pixelfed/pixelfed.git
synced 2024-11-22 06:21:27 +00:00
Update ProfileMigration model, add target relation
This commit is contained in:
parent
4a6be62128
commit
3f0539978e
1 changed files with 5 additions and 0 deletions
|
@ -16,4 +16,9 @@ class ProfileMigration extends Model
|
||||||
{
|
{
|
||||||
return $this->belongsTo(Profile::class, 'profile_id');
|
return $this->belongsTo(Profile::class, 'profile_id');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public function target()
|
||||||
|
{
|
||||||
|
return $this->belongsTo(Profile::class, 'target_profile_id');
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue