We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 023a0bd commit 581db1dCopy full SHA for 581db1d
1 file changed
lib/tasks/seeds_helper.rb
@@ -28,7 +28,10 @@ def create_school(creator_id, school_id = nil)
28
school.creator_agree_to_ux_contact = true
29
# Country-specific required fields
30
school.reference = format('%06d', rand(100_000..999_999)) if country_code == 'GB'
31
- school.district_nces_id = format('%012d', rand(10**12)) if country_code == 'US'
+ if country_code == 'US'
32
+ school.district_nces_id = format('%012d', rand(10**12))
33
+ school.district_name = Faker::Address.community
34
+ end
35
school.school_roll_number = "#{rand(10_000..99_999)}#{('A'..'Z').to_a.sample}" if country_code == 'IE'
36
end
37
0 commit comments