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