diff options
author | José Valim <jose.valim@gmail.com> | 2010-01-08 08:37:58 +0100 |
---|---|---|
committer | José Valim <jose.valim@gmail.com> | 2010-01-08 21:36:04 +0100 |
commit | 7045c4c279499eb7340fb420398d613497739eef (patch) | |
tree | c62d42b74d68a738a3baa935add403e10305f70d /activerecord/lib/active_record/migration.rb | |
parent | fa14d6d51ed89acde66b49e8d3a6423396c3d553 (diff) | |
download | rails-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