If a model has validations defined on it and in certain cases I don’t
want some validations to be done then how can I disable the validations
that I don’ want to be done?
model.valid? will do all the validations but I wan’t only some
validations to be done and others to be ignored.
Like a form for create may have some fields in model which can be left
blank, so they should not be validated. But in another form those fields
are present, and the fields which are not present on that screen will
cause validation to fail.