You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
16 lines
416 B
16 lines
416 B
5 years ago
|
class CreateWatchCourseVideos < ActiveRecord::Migration[5.2]
|
||
|
def change
|
||
|
create_table :watch_course_videos do |t|
|
||
|
t.references :course_video, index: true
|
||
|
t.references :user, index: true
|
||
|
t.boolean :is_finished, default: false
|
||
|
t.float :duration, default: 0
|
||
|
t.float :watch_duration, default: 0
|
||
|
t.datetime :start_at
|
||
|
t.datetime :end_at
|
||
|
|
||
|
t.timestamps
|
||
|
end
|
||
|
end
|
||
|
end
|