Skip to content

Commit 26e42bc

Browse files
committed
Fixing template ID for seed CO018
1 parent 4597758 commit 26e42bc

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

db/seeds/activities/mylearning.rb

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1406,7 +1406,10 @@
14061406

14071407
########################################################################################################################
14081408

1409-
Activity.find_or_initialize_by(stem_course_template_no: "6d35d662-d40e-f011-9989-6045bd0c58e0").tap do |activity|
1409+
# CO018 was seeded with the incorrect template number - removing here and reseeding
1410+
Activity.find_by(stem_course_template_no: "6d35d662-d40e-f011-9989-6045bd0c58e0")&.destroy
1411+
1412+
Activity.find_or_initialize_by(stem_course_template_no: "17011822-0667-f011-bec3-6045bd0b0fca").tap do |activity|
14101413
activity.title = "Teaching programming with the micro:bit"
14111414
activity.credit = 60
14121415
activity.slug = "teaching-programming-with-the-micro-bit-online"

0 commit comments

Comments
 (0)