OSDN Git Service

migrate
[elecoma/elecoma.git] / app / models / social.rb
index d8e8b1d..ccaa298 100644 (file)
@@ -2,4 +2,8 @@ class Social < ActiveRecord::Base
 
   belongs_to :shop
 
+  validates_format_of :mixi_key,
+                      :with => /^[a-zA-Z0-9]*$/,
+                      :message => "は正しい形式ではありません。" 
+
 end