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:
2024-02-04 14:23:07 +00:00
parent 4238e4fe4e
commit e8e143355d
5 changed files with 26 additions and 5 deletions
@@ -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