OSDN Git Service

classname rename to module_name
[pettanr/pettanr.git] / app / models / writing_format.rb
index cd5afdd..2d3cd15 100644 (file)
@@ -4,7 +4,7 @@ class WritingFormat < Peta::Template
   belongs_to :system_picture
   
   validates :name, :presence => true, :uniqueness => true, :length => {:maximum => 50}
-  validates :classname, :presence => true, :length => {:maximum => 50}
+  validates :module_name, :presence => true, :length => {:maximum => 50}
   validates :caption, :presence => true, :length => {:maximum => 30}
   validates :t, :presence => true, :numericality => {:greater_than_or_equal_to => 0}
   validates :system_picture_id, :presence => true, :numericality => true, :existence => {:both => false}