From e7ca30bbd05a120c01b17836fce3a43ef6b7b495 Mon Sep 17 00:00:00 2001 From: Marc Sardon Date: Wed, 23 Oct 2024 17:00:58 +0100 Subject: [PATCH] Remove email validation from Organisation model The validation causes existing Schools not being able to publish vacancies because their stored email is invalid. The validation in the form should cover the case of schools trying to introduce/change a wrong email address. --- app/models/organisation.rb | 2 -- 1 file changed, 2 deletions(-) diff --git a/app/models/organisation.rb b/app/models/organisation.rb index 053d456f2d..6757b2c3df 100644 --- a/app/models/organisation.rb +++ b/app/models/organisation.rb @@ -51,8 +51,6 @@ class Organisation < ApplicationRecord scope :visible_to_jobseekers, -> { schools.not_closed.not_out_of_scope.or(Organisation.trusts).registered_for_service } - validates :email, email_address: true - alias_attribute :data, :gias_data enum phase: {