Skip to content

Commit

Permalink
Remove email validation from Organisation model
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
scruti committed Oct 23, 2024
1 parent 5f0412d commit e7ca30b
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions app/models/organisation.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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: {
Expand Down

0 comments on commit e7ca30b

Please sign in to comment.