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
|
||||
Reference in New Issue
Block a user