2 # This file should contain all the record creation needed to seed the database with its default values.
3 # The data can then be loaded with the rake db:seed (or created alongside the db with db:setup).
7 # cities = City.create([{ name: 'Chicago' }, { name: 'Copenhagen' }])
8 # Mayor.create(name: 'Emanuel', city: cities.first)
10 if Rails.env.development?
12 [Jar, Task, Lecture, Teacher].each(&:delete_all)
16 Teacher.create :name => "にゃんこ#{i}"
21 lec = Lecture.create :name => "かわいい先生学第#{i}"
22 lec.teacher = teachers[i % teachers.size]
28 task = Task.create :name => "きゅーと課題 その#{i}"
29 task.lecture = lectures[i % lectures.size]
32 jar = Jar.create :name => "jp.ac.titech.sharp4k.cuten.sampletask#{i}.CuteTask#{i}", :revision => 1