1
0
mirror of https://github.com/flarum/core.git synced 2025-10-12 23:44:27 +02:00

decided to leave the posts.discussion_id foreign key constraint to discussions out for now

This commit is contained in:
Daniel Klabbers
2018-07-20 08:41:01 +02:00
parent 90792abf10
commit 5a04635e7a
8 changed files with 14 additions and 15 deletions

View File

@@ -121,7 +121,7 @@ class Group extends AbstractModel
*/
public function users()
{
return $this->belongsToMany(User::class, 'users_groups');
return $this->belongsToMany(User::class);
}
/**

View File

@@ -23,7 +23,7 @@ class Permission extends AbstractModel
/**
* {@inheritdoc}
*/
protected $table = 'groups_permissions';
protected $table = 'group_permission';
/**
* Define the relationship with the group that this permission is for.