Rephrase toggl scraping in term of attendances

This commit is contained in:
2023-09-29 21:19:43 +01:00
parent be4f3f75c3
commit 2934d21f5f
8 changed files with 72 additions and 8 deletions
+8
View File
@@ -0,0 +1,8 @@
class Attendance < ApplicationRecord
belongs_to :lecture
enum :kind, [
:concurrent,
:catchup
]
end
+1
View File
@@ -1,5 +1,6 @@
class Lecture < ApplicationRecord
belongs_to :course
has_one :attendance
enum :status, [
:undetermined,