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.
This commit is contained in:
2023-10-01 19:44:20 +01:00
parent 070816f0a2
commit d9d182bc94
13 changed files with 153 additions and 36 deletions
@@ -0,0 +1,8 @@
class UpdateLectureProperties < ActiveRecord::Migration[7.0]
def change
remove_column :lectures, :status
# Optional association with an event in the calendar
add_column :lectures, :event_uuid, :string, null: true
end
end
@@ -0,0 +1,5 @@
class ChangeRecordingStartTimeType < ActiveRecord::Migration[7.0]
def change
change_column :recordings, :start_time, :datetime, using: 'start_time::timestamp'
end
end