Skip to content

Commit 906510c

Browse files
committed
Remove uniqueness requirement for district nces id
1 parent bbb4d69 commit 906510c

1 file changed

Lines changed: 0 additions & 1 deletion

File tree

app/models/school.rb

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@ class School < ApplicationRecord
2121
format: { with: /\A\d{5,6}\z/, allow_nil: true, message: I18n.t('validations.school.reference') },
2222
if: :united_kingdom?
2323
validates :district_nces_id,
24-
uniqueness: { conditions: -> { where(rejected_at: nil) }, case_sensitive: false, allow_blank: true, message: I18n.t('validations.school.district_nces_id_exists') },
2524
format: { with: /\A\d{7}\z/, allow_nil: true, message: I18n.t('validations.school.district_nces_id') },
2625
if: :united_states?
2726
validates :district_name, presence: true, if: :united_states?

0 commit comments

Comments
 (0)