OSDN Git Service

fix: fetch fail
[pettanr/pettanr.git] / app / models / provider_status.rb
index f49a98e..e95f979 100644 (file)
@@ -1,7 +1,7 @@
 class ProviderStatus < ActiveRecord::Base
   has_one :provider
   
-  validates :token, :format => {:with => /^[a-zA-Z0-9]+$/, :allow_blank => true}
+  validates :token, :format => {:with => /\a[a-zA-Z0-9]+\z/, :allow_blank => true}
   validates :receive_hour1, :numericality => {:allow_blank => true}
   validates :receive_hour2, :numericality => {:allow_blank => true}
 #  validates :received_at