OSDN Git Service

pass test
[pettanr/pettanr.git] / app / models / balloon.rb
index acaefc8..7af4df9 100644 (file)
@@ -2,7 +2,7 @@ class Balloon < ActiveRecord::Base
   belongs_to :speech_balloon
   belongs_to :system_picture
   
-#  validates :speech_balloon_id, :presence => true, :numericality => true, :existence => true
+  validates :speech_balloon_id, :numericality => {:allow_blank => true}
   validates :system_picture_id, :presence => true, :numericality => true, :existence => true
   validates :x, :presence => true, :numericality => true
   validates :y, :presence => true, :numericality => true