Sha256: bced2c2d371cfeceb5ac578ff2a8033a7ad18a2c7b2b4f44a83bd98bd9bf771e
Contents?: true
Size: 829 Bytes
Versions: 16
Compression:
Stored size: 829 Bytes
Contents
# require 'shared_sample_data' # say "Creating #{@count[:disposals]} exam attachment disposals ...".yellow # batch_create(@count[:disposals]) do # exam = Gaku::Exam.where(name: "#{Faker::Education.major} Exam").first_or_create! # exam_portion = exam.exam_portions.where( # name: "#{Faker::Education.major} ExamPortion", # max_score: 100 # ).first_or_create! # Gaku::Attachment.create!( # name: 'Attachment Name', # attachable: exam_portion, # asset: File.open(File.join(File.dirname(__FILE__), '..', 'images', '120x120.jpg')), # deleted: true # ) # end
Version data entries
16 entries across 16 versions & 2 rubygems