Sha256: 57ec454c04920f27eb4565e590bea013fa1ce47eacba0a5587327c035045548d

Contents?: true

Size: 877 Bytes

Versions: 16

Compression:

Stored size: 877 Bytes

Contents

# encoding: utf-8
require 'shared_sample_data'

say 'Creating predefined students ...'.yellow
students = [
  { name: 'Anonime', surname: 'Anon', birth_date: Date.new(1982, 1, 1), enrollment_status_code: @enrollment_status },
  { name: 'Amon', surname: 'Tobin', birth_date: Date.new(1983, 1, 1), enrollment_status_code: @enrollment_status },
  { name: '零', surname: '影月', enrollment_status_code: @enrollment_status },
  { name: 'サニー', surname: 'スノー', enrollment_status_code: @enrollment_status }
]

create_student_with_full_info(@john_doe)

students.each { |student| create_student_with_full_info(student) }

say "Creating #{@count[:students]} students ...".yellow
batch_create(@count[:students]) { create_student_with_full_info }

say "Creating #{@count[:students]} applicant students ...".yellow
batch_create(@count[:students]) { create_non_active_student }

Version data entries

16 entries across 16 versions & 2 rubygems

Version Path
gaku_sample-0.3.0 db/sample/gaku/students.rb
gaku_sample-0.3.0.pre.4 db/sample/gaku/students.rb
gaku_sample-0.3.0.pre.3 db/sample/gaku/students.rb
gaku_sample-0.3.0.pre.2 db/sample/gaku/students.rb
gaku_sample-0.3.0.pre.1 db/sample/gaku/students.rb
gaku_sample-0.3.0.pre.0 db/sample/gaku/students.rb
gaku-0.2.4 sample/db/sample/gaku/students.rb
gaku_sample-0.2.4 db/sample/gaku/students.rb
gaku-0.2.3 sample/db/sample/gaku/students.rb
gaku_sample-0.2.3 db/sample/gaku/students.rb
gaku-0.2.2 sample/db/sample/gaku/students.rb
gaku_sample-0.2.2 db/sample/gaku/students.rb
gaku-0.2.1 sample/db/sample/gaku/students.rb
gaku_sample-0.2.1 db/sample/gaku/students.rb
gaku-0.2.0 sample/db/sample/gaku/students.rb
gaku_sample-0.2.0 db/sample/gaku/students.rb