Add validation to GameGenre and GamePlatform
[cs356-p2-videostore.git] / app / models / game_platform.rb
index 379684e..4e8ecc9 100644 (file)
@@ -1,3 +1,5 @@
 class GamePlatform < ActiveRecord::Base
   belongs_to :game
+
+  validates_presence_of :name
 end