Rename field for less confusion.

This commit is contained in:
James Cole
2023-10-22 07:12:47 +02:00
parent 9b22c16f14
commit 704fc24d20
4 changed files with 6 additions and 6 deletions

View File

@@ -131,7 +131,7 @@ class TransactionCurrency extends Model
*/
public function users(): BelongsToMany
{
return $this->belongsToMany(User::class)->withTimestamps()->withPivot('default');
return $this->belongsToMany(User::class)->withTimestamps()->withPivot('user_default');
}
/**
@@ -141,7 +141,7 @@ class TransactionCurrency extends Model
*/
public function userGroups(): BelongsToMany
{
return $this->belongsToMany(UserGroup::class)->withTimestamps()->withPivot('default');
return $this->belongsToMany(UserGroup::class)->withTimestamps()->withPivot('group_default');
}
/**