OSDN Git Service

t#30328:create op import ...and pull
[pettanr/pettanr.git] / app / models / ground_color.rb
index 3c5faa3..58fa057 100644 (file)
@@ -3,7 +3,7 @@ class GroundColor < ActiveRecord::Base
   belongs_to :color
   
   validates :panel_id, :numericality => {:allow_blank => true}
-  validates :color_id, :numericality => true, :existence => true
+  validates :color_id, :numericality => true, :existence => {:both => false}
   validates :z, :presence => true, :numericality => {:greater_than => 0}
   
   def supply_default