[Rails] Re: Re: Re: [ANN] Dr Nic’s Magic Mode?

Joe Ruby joeat303 at yahoo.com
Tue Aug 8 18:59:15 GMT 2006


Dr. Nic -

Think it's possible to get constraint info from the database and figure 
out additional validates_* from that? I don't know if MySQL even has 
contraints yet, but with PostgreSQL you can specify things like 'check 
age > 0 and age < 150', etc. Another idea is that columns with unique 
constraints could also translate into validates_uniqueness_of. Just a 
couple ideas if you want to get crazy. ;)

Joe

-- 
Posted via http://www.ruby-forum.com/.


More information about the Rails mailing list