Sha256: 158fb0b834955ae869038ad1a7c1ba1358f9e6f1511b80ab43f1f6b95645b985

Contents?: true

Size: 286 Bytes

Versions: 10

Compression:

Stored size: 286 Bytes

Contents

# encoding: utf-8

names = [
  'Summer Program Entry',
  'Regular Program Entry',
  'International Program Exams',
  'National Information Engineer Certification'
]

say "Creating #{names.size} exams ...".yellow

names.each do |name|
  Gaku::Exam.where(name: name).first_or_create!
end

Version data entries

10 entries across 10 versions & 2 rubygems

Version Path
gaku-0.1.1 sample/db/sample/gaku/exams.rb
gaku_sample-0.1.1 db/sample/gaku/exams.rb
gaku-0.1.0 sample/db/sample/gaku/exams.rb
gaku_sample-0.1.0 db/sample/gaku/exams.rb
gaku_sample-0.0.3 db/sample/gaku/exams.rb
gaku-0.0.3 sample/db/sample/gaku/exams.rb
gaku-0.0.2 sample/db/sample/gaku/exams.rb
gaku_sample-0.0.2 db/sample/gaku/exams.rb
gaku-0.0.1 sample/db/sample/gaku/exams.rb
gaku_sample-0.0.1 db/sample/gaku/exams.rb