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
@@ -0,0 +1,11 @@
class CreateAttendances < ActiveRecord::Migration[7.0]
def change
create_table :attendances do |t|
t.references :lecture, null: false, foreign_key: true
t.string :associated_toggl_entry
t.integer :kind
t.timestamps
end
end
end
@@ -0,0 +1,5 @@
class RemoveTogglEntryIdFromLecture < ActiveRecord::Migration[7.0]
def change
remove_column :lectures, :associated_toggl_entry
end
end