40 lines
1.2 KiB
Ruby
40 lines
1.2 KiB
Ruby
# This file should contain all the record creation needed to seed the database with its default values.
|
|
# The data can then be loaded with the bin/rails db:seed command (or created alongside the database with db:setup).
|
|
#
|
|
# Examples:
|
|
#
|
|
# movies = Movie.create([{ name: "Star Wars" }, { name: "Lord of the Rings" }])
|
|
# Character.create(name: "Luke", movie: movies.first)
|
|
|
|
Course.create!(
|
|
title: 'General Relativity',
|
|
panopto_folders: ["5a77867a-236b-478f-9b0d-af2400ed0989"],
|
|
toggl_project: 189467492,
|
|
unit_code: 'PH30101',
|
|
semester_start_date: Date.parse('2023-02-06'),
|
|
)
|
|
|
|
Course.create!(
|
|
title: 'Continuum mechanics',
|
|
panopto_folders: ["dca2c510-49b4-4a24-9c91-b07701022d03"],
|
|
toggl_project: 195482340,
|
|
unit_code: 'MA30253',
|
|
semester_start_date: START_OF_YEAR_5_SEMESTER_1.to_date,
|
|
)
|
|
|
|
Course.create!(
|
|
title: 'Quantum Mechanics',
|
|
panopto_folders: ['7f5198a9-8261-4e11-9007-b07500bc314b'],
|
|
toggl_project: 195518593,
|
|
unit_code: 'PH30030',
|
|
semester_start_date: START_OF_YEAR_5_SEMESTER_1.to_date,
|
|
)
|
|
|
|
Course.create!(
|
|
title: 'Measure Theory & Integration',
|
|
panopto_folders: ["af2c415a-6a21-4f08-ba76-b07500a2174c"],
|
|
toggl_project: 195519024,
|
|
unit_code: 'MA40042',
|
|
semester_start_date: START_OF_YEAR_5_SEMESTER_1.to_date,
|
|
)
|