The columns with automatic presence validations
The columns or sets of columns with automatic unique validations
Whether to automatically validate schema types for all columns
# File lib/sequel/plugins/auto_validations.rb, line 66 def auto_validate_types? @auto_validate_types end
Skip automatic validations for the given validation type (:presence, :types, :unique). If :all is given as the type, skip all auto validations.
# File lib/sequel/plugins/auto_validations.rb, line 72 def skip_auto_validations(type) if type == :all [:presence, :types, :unique].each{|v| skip_auto_validations(v)} elsif type == :types @auto_validate_types = false else send("auto_validate_#{type}_columns").clear end end