Add toggl scraping

This commit is contained in:
2023-09-29 21:06:33 +01:00
parent 0d97b5fdc0
commit be4f3f75c3
8 changed files with 73 additions and 1 deletions
@@ -0,0 +1,5 @@
class AddAssociatedTogglEntryToLecture < ActiveRecord::Migration[7.0]
def change
add_column :lectures, :associated_toggl_entry, :integer, null: true
end
end
@@ -0,0 +1,5 @@
class ChangeTogglEntryIdToString < ActiveRecord::Migration[7.0]
def change
change_column :lectures, :associated_toggl_entry, :string, null: true
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_09_29_184126) do
ActiveRecord::Schema[7.0].define(version: 2023_09_29_200245) do
# These are extensions that must be enabled in order to support this database
enable_extension "plpgsql"
@@ -31,6 +31,7 @@ ActiveRecord::Schema[7.0].define(version: 2023_09_29_184126) do
t.datetime "created_at", null: false
t.datetime "updated_at", null: false
t.bigint "course_id"
t.string "associated_toggl_entry"
t.index ["course_id"], name: "index_lectures_on_course_id"
t.index ["recording_id"], name: "index_lectures_on_recording_id", unique: true
end