|
|
|
@ -70,7 +70,7 @@ namespace :generate_lettings_documentation do |
|
|
|
validation_description = "Field value is lower than the minimum value or higher than the maximum value" |
|
|
|
validation_description = "Field value is lower than the minimum value or higher than the maximum value" |
|
|
|
end |
|
|
|
end |
|
|
|
|
|
|
|
|
|
|
|
if LogValidation.where(validation_name:, field:).exists? |
|
|
|
if LogValidation.where(validation_name:, field:, log_type: "lettings").exists? |
|
|
|
|
|
|
|
|
|
|
|
Rails.logger.info("Validation #{validation_name} already exists for #{field}") |
|
|
|
Rails.logger.info("Validation #{validation_name} already exists for #{field}") |
|
|
|
next |
|
|
|
next |
|
|
|
|