I have created a validation on a table but want to exclude the validation on a specific column in my controller create method. How would I go about doing this?
def validate_cookie_brand
render json: 422, unless valid_cookie_brand?
end
def valid_cookie_brand?
CookieBrand.exists?(cookie_brand: cookie_create_request_params[:cookie_brand]))
end