refactor: drop unused genre_torrent table

This commit is contained in:
Roardom
2023-07-24 00:05:16 +00:00
parent 66c5cd49e7
commit faf4d37ac0
2 changed files with 14 additions and 8 deletions
-8
View File
@@ -128,14 +128,6 @@ class Torrent extends Model
return $this->belongsToMany(Playlist::class, 'playlist_torrents')->using(PlaylistTorrent::class)->withPivot('id');
}
/**
* Has Many Genres.
*/
public function genres(): \Illuminate\Database\Eloquent\Relations\BelongsToMany
{
return $this->belongsToMany(Genre::class, 'genre_torrent', 'torrent_id', 'genre_id', 'id', 'id');
}
/**
* Torrent Has Been Moderated By.
*/