mirror of
https://github.com/ryankazokas/turbovault-app.git
synced 2026-04-17 01:42:53 +00:00
Moving to github
This commit is contained in:
7
app/models/game_genre.rb
Normal file
7
app/models/game_genre.rb
Normal file
@@ -0,0 +1,7 @@
|
||||
class GameGenre < ApplicationRecord
|
||||
belongs_to :game
|
||||
belongs_to :genre
|
||||
|
||||
# Validations
|
||||
validates :game_id, uniqueness: { scope: :genre_id, message: "already has this genre" }
|
||||
end
|
||||
Reference in New Issue
Block a user