Track associated toggl entry id for uniqueness, show stats for time spent in different parts of the lecture flow.
This commit is contained in:
@@ -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
|
||||
Reference in New Issue
Block a user