Add Toggl data to attendances, fix attendance creation for past lectures. Change styling a little.

This commit is contained in:
2023-10-02 16:19:37 +01:00
parent 2530ee629a
commit 9a5116f29e
7 changed files with 43 additions and 23 deletions
+2 -2
View File
@@ -1,7 +1,7 @@
class Course < ApplicationRecord
has_many :lectures
has_many :lectures, dependent: :destroy
# A course has a standalone connection to its recordings. To be shown they must be associated with a lecture but we
# track those not associated with a lecture to avoid duplication.
has_many :recordings
has_many :recordings, dependent: :destroy
end