Skip to content

Commit

Permalink
Cambios en restricción de números de contactos
Browse files Browse the repository at this point in the history
  • Loading branch information
martinvega committed Mar 23, 2012
1 parent fa9911c commit 8c4de1e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/models/contact.rb
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ class Contact < ActiveRecord::Base
validates :date, :name, :number, :presence => true validates :date, :name, :number, :presence => true
validates_length_of :name, :locality, :comment, :maximum => 255 validates_length_of :name, :locality, :comment, :maximum => 255
validates_numericality_of :number, :only_integer => true, :allow_nil => true, 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_uniqueness_of :number, :allow_nil => true, :allow_blank => true
validates_date :date, :allow_nil => true, :allow_blank => true validates_date :date, :allow_nil => true, :allow_blank => true


Expand Down

0 comments on commit 8c4de1e

Please sign in to comment.