Sha256: 79d6e924fa0951b02530857764cd14b8c349ace562a123f5d7fcbd6abfd29d72
Contents?: true
Size: 435 Bytes
Versions: 16
Compression:
Stored size: 435 Bytes
Contents
# encoding: utf-8 courses = [ { syllabus: Gaku::Syllabus.where(code: 'B01').first, code: 'Spring 2013' }, { syllabus: Gaku::Syllabus.where(code: 'MT').first, code: '2013年(秋)' }, { syllabus: Gaku::Syllabus.where(code: 'RB1').first, code: 'Prof. Why' } ] say "Creating #{courses.size} courses ...".yellow courses.each do |course| Gaku::Course.where(code: course[:code], syllabus_id: course[:syllabus]).first_or_create! end
Version data entries
16 entries across 16 versions & 2 rubygems