Initial work for import from panopto

This commit is contained in:
2023-09-29 19:19:03 +01:00
parent 34c5f771ad
commit 0e0c6694ac
6 changed files with 24 additions and 2 deletions
@@ -0,0 +1,5 @@
class MakeLectureRecordingIdUnique < ActiveRecord::Migration[7.0]
def change
add_index :lectures, :recording_id, unique: 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_171856) do
ActiveRecord::Schema[7.0].define(version: 2023_09_29_181725) do
# These are extensions that must be enabled in order to support this database
enable_extension "plpgsql"
@@ -32,6 +32,7 @@ ActiveRecord::Schema[7.0].define(version: 2023_09_29_171856) do
t.datetime "updated_at", null: false
t.bigint "course_id"
t.index ["course_id"], name: "index_lectures_on_course_id"
t.index ["recording_id"], name: "index_lectures_on_recording_id", unique: true
end
end