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
@@ -0,0 +1,5 @@
class AddTogglDataToAttendance < ActiveRecord::Migration[7.0]
def change
add_column :attendances, :toggl_data, :jsonb
end
end
Generated
+2 -1
View File
@@ -10,7 +10,7 @@
#
# It's strongly recommended that you check this file into your version control system.
ActiveRecord::Schema[7.0].define(version: 2023_10_02_083755) do
ActiveRecord::Schema[7.0].define(version: 2023_10_02_150348) do
# These are extensions that must be enabled in order to support this database
enable_extension "plpgsql"
@@ -20,6 +20,7 @@ ActiveRecord::Schema[7.0].define(version: 2023_10_02_083755) do
t.integer "kind"
t.datetime "created_at", null: false
t.datetime "updated_at", null: false
t.jsonb "toggl_data"
t.index ["lecture_id"], name: "index_attendances_on_lecture_id"
end