Add online property and live video URL to lecture models, as well as a default value at the course level
This commit is contained in:
@@ -0,0 +1,5 @@
|
||||
class AddDefaultLiveVideoUrlToCourse < ActiveRecord::Migration[7.1]
|
||||
def change
|
||||
add_column :courses, :default_live_video_url, :string
|
||||
end
|
||||
end
|
||||
@@ -0,0 +1,6 @@
|
||||
class AddOnlineAndLiveVideoUrlToLecture < ActiveRecord::Migration[7.1]
|
||||
def change
|
||||
add_column :lectures, :online, :boolean, default: false, null: false
|
||||
add_column :lectures, :live_video_url, :string
|
||||
end
|
||||
end
|
||||
Generated
+4
-1
@@ -10,7 +10,7 @@
|
||||
#
|
||||
# It's strongly recommended that you check this file into your version control system.
|
||||
|
||||
ActiveRecord::Schema[7.1].define(version: 2024_02_04_133705) do
|
||||
ActiveRecord::Schema[7.1].define(version: 2024_02_04_141120) do
|
||||
# These are extensions that must be enabled in order to support this database
|
||||
enable_extension "plpgsql"
|
||||
|
||||
@@ -24,6 +24,7 @@ ActiveRecord::Schema[7.1].define(version: 2024_02_04_133705) do
|
||||
t.date "semester_start_date", default: "2023-10-02"
|
||||
t.string "homepage"
|
||||
t.boolean "archived", default: false, null: false
|
||||
t.string "default_live_video_url"
|
||||
t.index ["toggl_project"], name: "index_courses_on_toggl_project", unique: true
|
||||
t.index ["unit_code"], name: "index_courses_on_unit_code", unique: true
|
||||
end
|
||||
@@ -37,6 +38,8 @@ ActiveRecord::Schema[7.1].define(version: 2024_02_04_133705) do
|
||||
t.string "event_uuid"
|
||||
t.boolean "cancelled", default: false
|
||||
t.integer "kind", default: 0
|
||||
t.boolean "online", default: false, null: false
|
||||
t.string "live_video_url"
|
||||
t.index ["course_id"], name: "index_lectures_on_course_id"
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user