Merge pull request #4972 from pixelfed/staging

Update ProfileMigration model, add target relation
This commit is contained in:
daniel 2024-03-05 00:30:22 -07:00 committed by GitHub
commit a9b99d8f9d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 5 additions and 0 deletions

View File

@ -16,4 +16,9 @@ class ProfileMigration extends Model
{
return $this->belongsTo(Profile::class, 'profile_id');
}
public function target()
{
return $this->belongsTo(Profile::class, 'target_profile_id');
}
}