Add validation to GameGenre and GamePlatform
[cs356-p2-videostore.git] / app / models / game_genre.rb
index 8bcc2f3..605c564 100644 (file)
@@ -1,3 +1,5 @@
 class GameGenre < ActiveRecord::Base
   belongs_to :game
+
+  validates_presence_of :name
 end