Permalink
Browse files

Cambios en restricción de números de contactos

  • Loading branch information...
1 parent fa9911c commit 8c4de1e842ff3e1702efdfa7774422b700fe76ab @martinvega committed Mar 23, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 app/models/contact.rb
@@ -11,7 +11,7 @@ class Contact < ActiveRecord::Base
validates :date, :name, :number, :presence => true
validates_length_of :name, :locality, :comment, :maximum => 255
validates_numericality_of :number, :only_integer => true, :allow_nil => true,
- :allow_blank => true, :greater_than => 0, :less_than => 5000000
+ :allow_blank => true, :greater_than => 0, :less_than => 10000000000
validates_uniqueness_of :number, :allow_nil => true, :allow_blank => true
validates_date :date, :allow_nil => true, :allow_blank => true

0 comments on commit 8c4de1e

Please sign in to comment.