aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/lib/active_record/migration.rb
diff options
context:
space:
mode:
authorJosé Valim <jose.valim@gmail.com>2010-01-08 08:37:58 +0100
committerJosé Valim <jose.valim@gmail.com>2010-01-08 21:36:04 +0100
commit7045c4c279499eb7340fb420398d613497739eef (patch)
treec62d42b74d68a738a3baa935add403e10305f70d /activerecord/lib/active_record/migration.rb
parentfa14d6d51ed89acde66b49e8d3a6423396c3d553 (diff)
downloadrails-7045c4c279499eb7340fb420398d613497739eef.tar.gz
rails-7045c4c279499eb7340fb420398d613497739eef.tar.bz2
rails-7045c4c279499eb7340fb420398d613497739eef.zip
Allow validates to map some types to specific options. So now you can do:
validates :email, :presence => true, :format => /@/ validates :genre, :inclusion => %w(m f) validates :password, :length => 6..20
Diffstat (limited to 'activerecord/lib/active_record/migration.rb')
0 files changed, 0 insertions, 0 deletions