Track associated toggl entry id for uniqueness, show stats for time spent in different parts of the lecture flow.

This commit is contained in:
2023-10-06 22:00:01 +01:00
parent ef301f6592
commit 0cb03812cf
6 changed files with 135 additions and 47 deletions
@@ -0,0 +1,8 @@
class AddAssociatedTogglEntryId < ActiveRecord::Migration[7.1]
def change
add_column :tracked_time_entries, :associated_toggl_entry_id, :integer, null: false
# Make column unique
add_index :tracked_time_entries, :associated_toggl_entry_id, unique: true
end
end
@@ -0,0 +1,5 @@
class MakeAssociatedTogglEntryIdLarger < ActiveRecord::Migration[7.1]
def change
change_column :tracked_time_entries, :associated_toggl_entry_id, :bigint
end
end