Skip to content

Commit

Permalink
Merge pull request #29061 from code-dot-org/uncomment-school-seeding
Browse files Browse the repository at this point in the history
Uncomment school seeding
  • Loading branch information
bencodeorg committed Jun 11, 2019
2 parents 3e20b97 + a620f80 commit d8ef75f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 11 deletions.
8 changes: 2 additions & 6 deletions dashboard/app/models/school.rb
Expand Up @@ -99,12 +99,8 @@ def self.seed_all(options = {})
School.transaction do
merge_from_csv(schools_tsv)
end
# this also needs to be commented out to prevent seeding
# of new schools until school_districts table is updated
# b/c we'll get foreign key errors if this were to be executed
# (i.e., schools added without appropriate school districts)
# else
# School.seed_from_s3
else
School.seed_from_s3
end
end

Expand Down
7 changes: 2 additions & 5 deletions dashboard/app/models/school_district.rb
Expand Up @@ -43,11 +43,8 @@ def self.seed_all(options = {})
SchoolDistrict.transaction do
merge_from_csv(school_districts_tsv)
end
# Temporarily commenting out the case where we run the full seed_from_s3
# (i.e., in production) in order to separately run seed_from_s3
# manually so as not to slow down the production deploy.
# else
# SchoolDistrict.seed_from_s3
else
SchoolDistrict.seed_from_s3
end
end

Expand Down

0 comments on commit d8ef75f

Please sign in to comment.