diff --git a/db/seeds.rb b/db/seeds.rb index 02e87c3099..6c21c6b466 100644 --- a/db/seeds.rb +++ b/db/seeds.rb @@ -72,7 +72,8 @@ def active_record_classes SupervisorVolunteer, User, LearningHour, - Volunteer + Volunteer, + PlacementType ] end @@ -121,3 +122,4 @@ def log(message) rescue => e puts "Caught error during db seed emancipation_options_prune, continuing. Message: #{e}" end +load(Rails.root.join("db", "seeds", "placement_data.rb")) \ No newline at end of file diff --git a/db/seeds/placement_data.rb b/db/seeds/placement_data.rb new file mode 100644 index 0000000000..d0e18e5657 --- /dev/null +++ b/db/seeds/placement_data.rb @@ -0,0 +1,16 @@ +casa_orgs = CasaOrg.all + +placement_types = [ + 'Reunification', + 'Custody/Guardianship by a relative', + 'Custody/Guardianship by a non-relative', + 'Adoption by relative', + 'Adoption by a non-relative', + 'APPLA' +] + +casa_orgs.each do |org| + placement_types.each do |label| + PlacementType.where(name: label, casa_org: org).first_or_create + end +end