module ActiveRecord::Validations

def default_validation_context

def default_validation_context
  new_record? ? :create : :update
end