lecture-attendance-manager/db/seeds.rb
Joshua Coles d9d182bc94 Update lecture properties and various migration changes
Modified code to remove 'status' field from lecture's table and added 'event_uuid' field. Also refined the 'start_time' field in recordings' table to handle datetime instead of strings. Further, made minor changes in scraping jobs and seeding logic. Implemented these changes to allow lectures to be associated with calendar events and streamlined various fields.
2023-10-01 19:44:20 +01:00

24 lines
809 B
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,
)