ruby on rails validates
作者:互联网
validates :conclusion, :presence => true, :inclusion => { :in => [0,1] } validates :email, :presence => true, :length => {:minimum => 3, :maximum => 254}, :uniqueness => true, :email => true validates :ending_order, :presence => true, :if => :valid_ending_order? validates_uniqueness_of :email, :on => :create
标签:presence,ruby,validates,rails,ending,uniqueness,true,email 来源: https://www.cnblogs.com/znsongshu/p/10387455.html