Initial work for import from panopto
This commit is contained in:
@@ -0,0 +1,5 @@
|
||||
class MakeLectureRecordingIdUnique < ActiveRecord::Migration[7.0]
|
||||
def change
|
||||
add_index :lectures, :recording_id, unique: true
|
||||
end
|
||||
end
|
||||
Generated
+2
-1
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user